Skip to content

Publish Python 🐍 distributions πŸ“¦ to PyPI #10

Publish Python 🐍 distributions πŸ“¦ to PyPI

Publish Python 🐍 distributions πŸ“¦ to PyPI #10

Workflow file for this run

name: Publish Python 🐍 distributions πŸ“¦ to PyPI
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-n-publish:
name: Use PDM to Build and publish Python 🐍 distributions πŸ“¦ to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout
uses: actions/checkout@master
with:
submodules: true
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
- name: Build and Publish distribution πŸ“¦ to PyPI
run: pdm publish