Skip to content

Publish to PyPI

Publish to PyPI #51

Workflow file for this run

name: Publish to PyPI
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: '3.9.x'
architecture: 'x64'
- name: Install Dependencies
run: pdm install
- name: Build package
run: pdm build
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
verbose: true