-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (37 loc) · 983 Bytes
/
release.yml
File metadata and controls
41 lines (37 loc) · 983 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
39
40
41
name: Release
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
id: download-artifact
- uses: dawidd6/action-download-artifact@v7
with:
workflow: build.yml
commit: ${{ github.sha }}
# branch: main
event: release
skip_unpack: true
- name: Parse changelog
- uses: actions/checkout@v4
- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: CHANGELOG.md
regex: |
'## \['
${{ github.event.release.tag_name }}
'\].*\n\n((.|\n)*)(?:## \[[0-9]+.[0-9]+.[0-9]+\])'
flags: gm
- name: Release
- uses: softprops/action-gh-release@v2
with:
body: ${{ steps.regex-match.outputs.group1 }}
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: *.zip