Skip to content

Commit

Permalink
Enable using trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
phackstock committed Aug 10, 2023
1 parent 253994b commit b48c3cb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
installer-parallel: true
- name: Install poetry dynamic versioning plugin
run: poetry self add "poetry-dynamic-versioning[plugin]"
- name: Register test pypi
run: poetry config repositories.test-pypi https://test.pypi.org/legacy/
- name: Build package
run: poetry build
- if: github.event_name == 'release'
name: Build & publish ixmp4 to pypi
run: poetry publish --build
name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- if: github.event_name != 'release'
name: Build & publish ixmp4 to testpypi
run: poetry publish --build -r test-pypi


name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit b48c3cb

Please sign in to comment.