Skip to content

Workflow file for this run

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

Check failure on line 39 in .github/workflows/publish-pypi.yml

View workflow run for this annotation

GitHub Actions / Upload Python Package to PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/publish-pypi.yml (Line: 39, Col: 3): Error calling workflow 'Alef-Burzmali/netbox-data-flows/.github/workflows/publish-documentation.yml@12ece1b1596154f9d347da3ef1a279c46079b27a'. The workflow is requesting 'contents: write', but is only allowed 'contents: read'.

Check failure on line 39 in .github/workflows/publish-pypi.yml

View workflow run for this annotation

GitHub Actions / Upload Python Package to PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/publish-pypi.yml (Line: 39, Col: 3): Error calling workflow 'Alef-Burzmali/netbox-data-flows/.github/workflows/publish-documentation.yml@12ece1b1596154f9d347da3ef1a279c46079b27a'. The workflow is requesting 'contents: write', but is only allowed 'contents: read'.
uses: ./.github/workflows/publish-documentation.yml