-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.12 KB
/
release.yml
File metadata and controls
36 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Create Release
on:
push:
tags:
- "v*"
jobs:
build:
name: "Release"
runs-on: ubuntu-latest
steps:
- name: "Check-out"
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: "Generate release changelog"
id: generate-release-changelog
uses: heinrichreimer/github-changelog-generator-action@v2.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
onlyLastTag: "true" # set to false if no tags exist (buggy with only one tag)
stripHeaders: "true"
stripGeneratorNotice: "true"
- name: Extract the VERSION name
id: get-version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: "Create GitHub release"
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ github.ref }}
name: "${{ steps.get-version.outputs.VERSION }}"
body: "${{ steps.generate-release-changelog.outputs.changelog }}"
prerelease: ${{ startsWith(steps.get-version.outputs.VERSION, 'v0.') }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: True