Skip to content

Commit 94adcd9

Browse files
add a zip as well
1 parent 87ff65c commit 94adcd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,16 @@ jobs:
2929
release-asset:
3030
if: github.event_name != 'workflow_dispatch'
3131
runs-on: ubuntu-latest
32+
env:
33+
NAME: jwt-cpp-${{ github.event.release.tag_name }}
3234
steps:
3335
- uses: actions/checkout@v4
3436

3537
- run: tar --exclude='./.git' -vczf /tmp/jwt-cpp-${{ github.event.release.tag_name }}.tar.gz .
3638
- uses: shogo82148/actions-upload-release-asset@v1
3739
with:
3840
upload_url: ${{ github.event.release.upload_url }}
39-
asset_path: /tmp/jwt-cpp-${{ github.event.release.tag_name }}.tar.gz
41+
asset_path: /tmp/$NAME.tar.gz
4042

4143
- run: zip -x './.git/*' -r /tmp/jwt-cpp-${{ github.event.release.tag_name }}.zip .
4244
- uses: shogo82148/actions-upload-release-asset@v1

0 commit comments

Comments
 (0)