Skip to content

v5.2.4

v5.2.4 #417

Workflow file for this run

name: release
on:
release:
types: [published]
workflow_dispatch:
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
uses: ./.github/workflows/build.yml
permissions:
attestations: write
contents: read
id-token: write
with:
version: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
needs: build
environment: release
permissions:
attestations: write
contents: write
id-token: write
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: actions/download-artifact@v6
- name: Publish to PyPI
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*
- name: Upload release assets to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.ref_name }}
run: |
gh release upload "${TAG_NAME}" binary-*/*