Skip to content

v0.7.0

v0.7.0 #27

Workflow file for this run

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
contents: write
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
- name: Publish package distributions to PyPI
run: pdm publish
- uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist/*
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ./dist/*
release_id: ${{ github.event.release.id }}