Create Github release from tagged commit #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
run-name: Create Github release from tagged commit | |
# -- Trigger Events -------------------------------------------------------------------------------- | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v* | |
# -- Concurrency ----------------------------------------------------------------------------------- | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
# -- Jobs ------------------------------------------------------------------------------------------ | |
jobs: | |
# Create Github release with changelog | |
release: | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
id: checkout-code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install uv | |
id: setup-uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- name: Install dependencies | |
id: install-deps | |
run: uv sync --only-group docs | |
- name: Create changelog | |
id: create-changelog | |
run: uv run git-cliff --latest --strip all --output ${{ github.workspace }}/changelog.md | |
- name: Create release | |
id: create-release | |
uses: softprops/action-gh-release@v2 | |
with: | |
body_path: ${{ github.workspace }}/changelog.md |