v0.3.1 #3
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: Upload Python Package | |
on: | |
release: | |
types: [published] | |
jobs: | |
pypi-publish: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
permissions: | |
# IMPORTANT: this permission is mandatory for trusted publishing | |
id-token: write | |
# This permission is needed to upload an artifact to the release | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ManoManoTech/setup-pdm@main | |
- name: Publish package distributions to PyPI | |
run: pdm publish | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: ./dist/* | |
# XXX Needs to be allowed in ManoManoTech org | |
# - uses: xresloader/upload-to-github-release@v1 | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# with: | |
# file: ./dist/* | |
# release_id: ${{ github.event.release.id }} |