Skip to content

Commit 1ea489f

Browse files
add a zip as well
1 parent 1e12d24 commit 1ea489f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,19 @@ jobs:
2828

2929
release-asset:
3030
runs-on: ubuntu-latest
31+
env:
32+
NAME: jwt-cpp-${{ github.event.release.tag_name }}
3133
steps:
3234
- uses: actions/checkout@v4
3335

34-
# steps for building assets
35-
- run: tar -czf /tmp/jwt-cpp-${{ github.event.release.tag_name }}.tar.gz .
36-
36+
- run: tar -czf /tmp/$NAME.tar.gz .
3737
- uses: shogo82148/actions-upload-release-asset@v1
3838
with:
3939
upload_url: ${{ github.event.release.upload_url }}
40-
asset_path: /tmp/jwt-cpp-${{ github.event.release.tag_name }}.tar.gz
40+
asset_path: /tmp/$NAME.tar.gz
4141

42+
- run: zip -r /tmp/$NAME.zip .
43+
- uses: shogo82148/actions-upload-release-asset@v1
44+
with:
45+
upload_url: ${{ github.event.release.upload_url }}
46+
asset_path: /tmp/$NAME.zip

0 commit comments

Comments
 (0)