Skip to content

Proof of concept

Proof of concept #5

Workflow file for this run

---
name: Release
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- run: pipx run build
- run: pipx run twine check dist/*
- uses: actions/upload-artifact@v4
with:
path: dist/*
publish:
needs: [build]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1