Skip to content

v0.0.29

v0.0.29 #35

Workflow file for this run

on:
release:
types:
- published
name: release
permissions: {}
env:
FORCE_COLOR: "1"
jobs:
build:
name: Build distributions 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version-file: pyproject.toml
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install pypa/build
run: python -m pip install -U build
- name: Build distributions
run: python -m build
- name: Upload distributions
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: distributions
path: dist/
generate-provenance:
name: Generate GitHub build provenances
runs-on: ubuntu-latest
needs: [build]
permissions:
id-token: write # to sign the provenance
attestations: write # to persist the attestation files
steps:
- name: Download distributions
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: distributions
path: dist/
- name: Create provenances
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
with:
subject-path: 'dist/*'
publish:
name: Publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pypi-attestations
needs: [build]
permissions:
id-token: write # trusted publishing + attestations
steps:
- name: Download distributions
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: distributions
path: dist/
- name: publish
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
with:
attestations: true