Skip to content

Add workflow to Release on PyPI #1

Add workflow to Release on PyPI

Add workflow to Release on PyPI #1

Workflow file for this run

name: Publish to PyPI
on:
push:
branches:
- main
permissions:
id-token: write
contents: read
jobs:
publish-library:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
name: Setup Python and PDM
with:
python-version: "3.12"
cache: true
- name: Install dependencies
run: |
pdm install
- name: Ensure lock file is up to date
run: |
pdm lock --check
- name: Install dependencies
run: |
pdm sync -d
- name: Publish to PyPI
run: pdm publish