Skip to content

Commit

Permalink
Modify GitHub Actions workflow for automatic PyPi publishing to also …
Browse files Browse the repository at this point in the history
…publish to Test PyPi
  • Loading branch information
dormrod committed Oct 9, 2024
1 parent d0b9339 commit 6988314
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to PyPi
name: Publish to PyPI

on:
release:
Expand Down Expand Up @@ -90,5 +90,12 @@ jobs:
name: package
path: dist

- name: Publish package
- name: Publish package to Test PyPI
if: ${{ vars.PUBLISH_TO_TEST_PYPI == 'true' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

- name: Publish package to PyPI
if: ${{ vars.PUBLISH_TO_PYPI == 'true' }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 6988314

Please sign in to comment.