Skip to content

Workflow file for this run

---
on:
release:
types: [published]
jobs:
release-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install requirements
run: |
pip install poetry
poetry install
poetry self add poetry-version-plugin
- name: Build
run: poetry build
- name: Upload build output
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
pypi-publish:
environment: pypi
runs-on: ubuntu-latest
needs:
- release-build
permissions:
id-token: write
packages: write
contents: write
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1