Skip to content

Commit

Permalink
Update publish-pypi.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
menckend authored Oct 24, 2024
1 parent d5cab65 commit 68e2bc8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/netbox_ptov # Replace <package-name> with your PyPI project name
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
Expand All @@ -52,7 +49,8 @@ jobs:
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

with:
repository-url: https://pypi.org/p/ne
publish-to-pypi-test:
if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'test')
environment:
Expand All @@ -77,7 +75,7 @@ jobs:
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/netbox_ptov
github-release:
if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'main')
environment:
Expand Down

0 comments on commit 68e2bc8

Please sign in to comment.