Fickling v0.1.2 #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to PyPI | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Build distributions | |
run: make dist | |
- name: Upload distributions | |
uses: actions/upload-artifact@v4 | |
with: | |
name: fickling-dists | |
path: dist/ | |
publish: | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write # For trusted publishing + codesigning. | |
contents: write # For attaching signing artifacts to the release. | |
needs: | |
- build-release | |
steps: | |
- name: fetch dists | |
uses: actions/download-artifact@v4 | |
with: | |
name: fickling-dists | |
path: dist/ | |
- name: publish | |
uses: pypa/[email protected] | |
- name: sign | |
uses: sigstore/[email protected] | |
with: | |
inputs: ./dist/*.tar.gz ./dist/*.whl | |
release-signing-artifacts: true |