Skip to content

Release

Release #6

Workflow file for this run

name: Release
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
on:
workflow_run:
workflows:
- CI
types:
- completed
branches:
- main
pull_request:
permissions:
contents: read
jobs:
semantic-release-dry-run:
name: semantic-release (dry-run)
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup uv
uses: astral-sh/setup-uv@v8.1.0
with:
python-version: '3.12'
- name: Sync dependencies
run: uv sync --extra dev
- name: Dry-run semantic-release
run: uv run semantic-release version --print
semantic-release:
name: semantic-release
if: github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success'
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_sha }}
- name: Setup uv
uses: astral-sh/setup-uv@v8.1.0
with:
python-version: '3.12'
- name: Sync dependencies
run: uv sync --extra dev
- name: Configure git author
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Run semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: uv run semantic-release version