Skip to content

Commit 22bb34d

Browse files
Change release event type to 'created' and update zip file naming convention to include run number
1 parent 23d6bb6 commit 22bb34d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release-zip.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Release Zip
22

33
on:
44
release:
5-
types: [published]
5+
types: [created]
6+
7+
68

79
jobs:
810
build-and-attach:
@@ -37,7 +39,7 @@ jobs:
3739
- name: Create release archive
3840
run: |
3941
mkdir -p dist-artifacts
40-
pnpm bestzip dist-artifacts/logly-${{ github.ref_name }}.zip \
42+
pnpm bestzip dist-artifacts/logly-${{ github.ref_name }}-${{ github.run_number }}.zip \
4143
*.hbs \
4244
partials \
4345
assets/dist \
@@ -49,6 +51,6 @@ jobs:
4951
- name: Upload release asset
5052
uses: softprops/action-gh-release@v2.5.0
5153
with:
52-
files: dist-artifacts/logly-${{ github.ref_name }}.zip
54+
files: dist-artifacts/logly-${{ github.ref_name }}-${{ github.run_number }}.zip
5355
env:
5456
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)