Skip to content

Publish to PyPI.org

Publish to PyPI.org #1

Workflow file for this run

name: Publish to PyPI.org
on:
workflow_run:
workflows: ["Build"]
types:
- completed
workflow_dispatch: # Allows manual triggering
jobs:
pypi:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: python3 -m pip install --upgrade build && python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}