Skip to content

Publish

Publish #19

Workflow file for this run

# https://pdm.fming.dev/latest/usage/publish/#publish-with-trusted-publishers
name: Publish
on:
workflow_dispatch: {}
jobs:
pypi-publish-test:
name: upload release to test.PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v4
- name: Publish package distributions to test.PyPI
run: pdm publish --repository testpypi
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v4
- name: Publish package distributions to PyPI
run: pdm publish