v0.6.3 #6
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
name: Deploy | |
on: | |
release: | |
types: [published] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
deploy-pypi: | |
name: Deploy to PyPI | |
# Having an environment for deployment is strongly recommend by PyPI | |
# https://docs.pypi.org/trusted-publishers/adding-a-publisher/#github-actions | |
# You can comment this line out if you don't want it. | |
environment: deploy | |
runs-on: ubuntu-latest | |
permissions: | |
# this permission is mandatory for trusted publishing with PyPI | |
id-token: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: "3.9" | |
- name: Publish to PyPI | |
run: | | |
pdm publish |