From 4a0a5871845023a2f5fa02851c50295070e137c6 Mon Sep 17 00:00:00 2001 From: eakmanrq <6326532+eakmanrq@users.noreply.github.com> Date: Sat, 18 May 2024 15:45:22 -0700 Subject: [PATCH] add publish workflow --- .github/workflows/publish.workflow.yaml | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish.workflow.yaml diff --git a/.github/workflows/publish.workflow.yaml b/.github/workflows/publish.workflow.yaml new file mode 100644 index 0000000..edcb05a --- /dev/null +++ b/.github/workflows/publish.workflow.yaml @@ -0,0 +1,27 @@ +name: Publish +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' +permissions: + contents: write +jobs: + deploy: + runs-on: ubuntu-latest + env: + TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Publish + run: make publish + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref_name }} + run: | + gh release create "$tag" \ + --repo="$GITHUB_REPOSITORY" \ + --title="${GITHUB_REPOSITORY#*/} ${tag#v}" \ + --generate-notes