Skip to content

Release

Release #2

Workflow file for this run

name: Release
on:
workflow_dispatch:
workflow_run:
workflows: ["Test"]
types: [completed]
branches: [main, prod]
permissions:
contents: write
jobs:
release:
name: semantic-release
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
outputs:
new-release-published: ${{ steps.semantic.outputs.new_release_published }}
new-release-version: ${{ steps.semantic.outputs.new_release_version }}
new-release-tag: ${{ steps.semantic.outputs.new_release_git_tag }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_branch || github.ref_name }}
persist-credentials: false
- name: Run semantic-release
id: semantic
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}