Skip to content

Release

Release #952

Workflow file for this run

name: Release
on:
workflow_run:
workflows: ["Run Tests"]
types: [completed]
branches:
- main
workflow_dispatch:
inputs:
release_sha:
description: Full commit SHA on main to release
required: true
type: string
permissions:
actions: read
contents: write
id-token: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
concurrency:
group: release-main
cancel-in-progress: false
jobs:
publish:
if: >-
github.event_name == 'workflow_dispatch' ||
(github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push' &&
github.event.workflow_run.head_branch == 'main')
runs-on: ubuntu-24.04
environment: pypi
env:
RELEASE_SHA: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || inputs.release_sha }}
RELEASE_BRANCH: main
REQUIRED_TEST_RUN_ID: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.id || '' }}
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
fetch-depth: 0
ref: ${{ env.RELEASE_SHA }}
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: '3.12'
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
version: "0.10.6"
enable-cache: true
- name: Publish tested commit
env:
GH_TOKEN: ${{ secrets.RELEASE_GH_TOKEN || github.token }}
run: ./bin/release.sh