Skip to content

Commit

Permalink
Merge pull request #1 from menckend/test
Browse files Browse the repository at this point in the history
first merge from Test
  • Loading branch information
menckend authored Oct 24, 2024
2 parents 8a66cc2 + 97cb35e commit ada921c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
if: contains(github.ref, '/tags/')
environment:
name: pypi
url: https://pypi.org/p/netbox_ptov # Replace <package-name> with your PyPI project name
#url: https://pypi.org/p/netbox_ptov # Replace <package-name> with your PyPI project name
name: Build distribution
runs-on: ubuntu-latest
steps:
Expand All @@ -29,16 +29,16 @@ jobs:
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'main')
name: >-
Publish Python distribution to PyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/netbox_ptov # Replace <package-name> with your PyPI project name
name: Publish Python distribution to PyPI
needs:
- build
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
Expand All @@ -49,17 +49,19 @@ jobs:
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

with:
repository-url: https://pypi.org/p/

publish-to-pypi-test:
if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'test')
environment:
name: pypi
url: https://test.pypi.org/legacy/netbox_ptov # Replace <package-name> with your PyPI project name
name: >-
Publish Python distribution of test branch to test.PyPI.org
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://test.pypi.org/p/dcnodatg
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
Expand Down

0 comments on commit ada921c

Please sign in to comment.