Skip to content

Commit f7cacae

Browse files
authored
switch ZIP from onTag to onRelease [skip ci]
and use `github.event.release.body` to use the old release body as the new release body (so it won't be overwritten)
1 parent 8b867c6 commit f7cacae

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/onTag_zip_manual_as_asset.yml renamed to .github/workflows/onRelease_zip_manual_as_asset.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
name: Zip Manual as Asset on Tag
1+
name: Zip Manual as Asset on Release
22

33
on:
4-
push:
5-
tags:
6-
- '*'
4+
# push:
5+
# tags:
6+
# - '*'
7+
8+
release:
9+
types: [published]
710

811
jobs:
912
build:
@@ -51,8 +54,7 @@ jobs:
5154
asset_name: nppUserManual.zip
5255
tag: ${{ github.ref }}
5356
overwrite: true
54-
body: |
55-
${{ github.event.head_commit.message }}
57+
body: ${{ github.event.release.body }}
5658

5759
# `body: | ...` derived from the following sources, in order to duplicate the original commit message in the artifact upload
5860
# - https://github.com/svenstaro/upload-release-action

0 commit comments

Comments
 (0)