-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 951 Bytes
/
create_release.yml
File metadata and controls
38 lines (33 loc) · 951 Bytes
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
37
38
name: create_release.yml
on:
push:
tags:
- "v-**"
permissions:
contents: write
pull-requests: read
jobs:
release:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Get actual Version
id: get_version
run: |
version=$(echo ${{github.ref_name}} | cut -d- -f2)
echo "::set-output name=version::$version"
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
mode: HYBRID
configuration: release_config.json
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: ${{steps.get_version.outputs.version}}
body: ${{steps.github_release.outputs.changelog}}