Skip to content

Update workflow

Update workflow #4

Workflow file for this run

name: Publish to PyPI
on:
push:
branches:
- main
jobs:
publish-library:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
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: Build package distributions
run: |
pdm build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1