-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.15 KB
/
github-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
35
36
37
38
39
40
41
42
43
44
45
---
name: Github Release
# yamllint disable-line rule:truthy
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Changelog Entry
id: get-changelog-entry
uses: chizovation/[email protected]
- name: Show Change Info
shell: bash
# yamllint disable rule:line-length
run: |
cat <<'EOInfo' >> $GITHUB_STEP_SUMMARY
## Last Change Entry
```markdown
${{ steps.get-changelog-entry.outputs.last-change-entry-v }}
```
EOInfo
- name: Release
uses: softprops/action-gh-release@v2
# only run if we have a changelog entry
if: steps.get-changelog-entry.outputs.last-change-entry != ''
with:
body: ${{ steps.get-changelog-entry.outputs.last-change-entry }}
tag_name: ${{ steps.get-changelog-entry.outputs.last-change-version-v }}
name: ${{ steps.get-changelog-entry.outputs.last-change-version-v }}
draft: false
prerelease: false