Skip to content

Commit

Permalink
fix: Build only after release is made
Browse files Browse the repository at this point in the history
  • Loading branch information
aaltat committed Mar 31, 2024
1 parent 05d7e41 commit 55f7def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ jobs:
run: |
rfbrowser init chromium
inv atest
- name: Build package
run: python -m build
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build package
run: python -m build
if: steps.release.outputs.released == 'true'
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'

- name: Publish package to GitHub Release
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
Expand Down

0 comments on commit 55f7def

Please sign in to comment.