Publish #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |