Skip to content

Semantic Release

Semantic Release #46

Workflow file for this run

name: Semantic Release
# Fires after deploy-docs finishes on main, so the version-history and cache
# commits are on the branch before semantic-release reads it. The bot commits
# use [skip ci], so a push won't chain back here on its own.
on:
workflow_run:
workflows: ["Build and Deploy Documentation"]
types: [completed]
branches: [main]
jobs:
release:
# Skip if the deploy failed - don't tag a release from a broken build.
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- name: Checkout source (release target)
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_branch }}
- name: Perform release [${{ github.event.workflow_run.head_branch }}]
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}