Skip to content

Commit

Permalink
Merge pull request #24 from bbergerud/pypi_workflow
Browse files Browse the repository at this point in the history
ci: changed new_release_published to released
  • Loading branch information
bbergerud committed Jun 7, 2024
2 parents d174e81 + 44862ff commit 481345f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,22 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build package
if: steps.semantic.outputs.new_release_published == 'true'
if: steps.semantic.outputs.released == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
poetry build
- name: Publish to TestPyPI
if: steps.semantic.outputs.new_release_published == 'true'
if: steps.semantic.outputs.released == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/

- name: Publish to PyPI
if: steps.semantic.outputs.new_release_published == 'true'
if: steps.semantic.outputs.released == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit 481345f

Please sign in to comment.