Skip to content
name: Upload Python Package to PyPI
on:
release:
types: [released]
permissions:
contents: read
jobs:
build:
uses: ./.github/workflows/python-build.yml
testpypi-publish:
name: Upload release to PyPI
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/netbox-data-flows
permissions:
id-token: write
steps:
- run: mkdir dist
- uses: actions/download-artifact@v4
with:
name: distributions
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1