Skip to content

Commit

Permalink
Add workflow for creating tag and release
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Jul 18, 2024
1 parent decd7a1 commit 3f37e93
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,20 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1

- name: Get package version
run: echo "PACKAGE_VERSION=$(poetry version -s)" >> $GITHUB_ENV

- name: Build and publish to PyPI
run: poetry publish --build -u __token__ -p $PYPI_API_TOKEN
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

- name: Create Tag Release
uses: beyond5959/create-release-github@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.PACKAGE_VERSION }}
release_name: v${{ env.PACKAGE_VERSION }}
draft: false
prerelease: false

0 comments on commit 3f37e93

Please sign in to comment.