Skip to content

v0.1.2

v0.1.2 #2

Workflow file for this run

name: publish
on:
release:
types: [published]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build SDist and wheel
run: pipx run build
- name: Check metadata
run: pipx run twine check dist/*
- uses: actions/upload-artifact@v3
with:
path: dist/*
upload_all:
name: Upload if release
needs: [build]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
# Use the trusted publisher mechanism
# https://docs.pypi.org/trusted-publishers/creating-a-project-through-oidc/
permissions:
id-token: write
steps:
- uses: actions/setup-python@v4
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Deploy to PyPI
uses: pypa/gh-action-pypi-publish@release/v1