Skip to content

Commit

Permalink
update python publish
Browse files Browse the repository at this point in the history
  • Loading branch information
godinlu committed Aug 1, 2024
1 parent a8b8c64 commit 1df5139
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1

- name: Set up Poetry environment
run: |
poetry config virtualenvs.create false
poetry install
- name: Update version in pyproject.toml
run: |
VERSION=${{ github.event.release.tag_name }}
sed -i "s/^version = .*/version = \"$VERSION\"/" pyproject.toml
- name: Build and publish to PyPI
uses: JRubics/[email protected]
with:
Expand Down

0 comments on commit 1df5139

Please sign in to comment.