Skip to content

The initial commit

The initial commit #2

name: Generate a Release
on:
push:
tags:
- 'v[0-9].[0-9]+.[0-9]+'
- '!v[0-9].[0-9]+.[0-9]+rc[0-9]+'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
set-release-version:
name: Set Release Version
runs-on: ubuntu-latest
outputs:
release-version: ${{ steps.set-release-version.outputs.release-version }}
steps:
- name: Checkout the Repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
fetch-depth: 0
- name: Set the Release Version
id: set-release-version
run: |
echo "release-version=${GITHUB_REF#refs/*/}" >> "${GITHUB_OUTPUT}"
create-release:
name: Create a Release
permissions:
contents: write
runs-on: ubuntu-latest
needs:
- set-release-version
steps:
- name: Checkout the Repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
fetch-depth: 0
- name: Generate Changelog
uses: Bullrich/generate-release-changelog@6b60f004b4bf12ff271603dc32dbd261965ad2f2 # v2.0.2
id: Changelog
env:
REPO: ${{ github.repository }}
- name: Create a Release
id: create_release
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # v2.0.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
name: ${{ needs.set-release-version.outputs.release-version }}
body: ${{ steps.Changelog.outputs.changelog }}
draft: false
prerelease: false