name: Release on: workflow_dispatch: jobs: pypi-publish: name: upload release to PyPI runs-on: ubuntu-latest permissions: # IMPORTANT: this permission is mandatory for trusted publishing id-token: write steps: - name: Checkout source uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v2 with: python-version: 3.8 - uses: pdm-project/setup-pdm@v3 - name: Publish package distributions to PyPI run: pdm publish