-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (32 loc) · 1.08 KB
/
release.yml
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
name: Create Release
on:
push:
tags:
- "*"
jobs:
build:
name: "Release"
runs-on: ubuntu-22.04
steps:
- name: "Check-out"
uses: actions/checkout@v3
- name: "Generate release changelog"
id: generate-release-changelog
uses: heinrichreimer/[email protected]
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@v1
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, '0.') }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: True