Skip to content

Commit e679f33

Browse files
back to basics
1 parent a30c0f7 commit e679f33

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,17 @@ jobs:
2828

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

36-
- run: |
37-
FILE=/tmp/$NAME.tar.gz
38-
tar -czf $FILE .
39-
[ ! -f $FILE ] && "error:: title=Missing File::File $FILE does not exist."
34+
- run: tar -vczf /tmp/jwt-cpp-${{ github.event.release.tag_name }}.tar.gz .
4035
- uses: shogo82148/actions-upload-release-asset@v1
4136
with:
4237
upload_url: ${{ github.event.release.upload_url }}
43-
asset_path: /tmp/$NAME.tar.gz
38+
asset_path: /tmp/jwt-cpp-${{ github.event.release.tag_name }}.tar.gz
4439

45-
- run: |
46-
FILE=/tmp/$NAME.zip
47-
zip -r $FILE .
48-
[ ! -f $FILE ] && "error:: title=Missing File::File $FILE does not exist."
40+
- run: zip -r /tmp/jwt-cpp-${{ github.event.release.tag_name }}.zip .
4941
- uses: shogo82148/actions-upload-release-asset@v1
5042
with:
5143
upload_url: ${{ github.event.release.upload_url }}
52-
asset_path: /tmp/$NAME.zip
44+
asset_path: /tmp/jwt-cpp-${{ github.event.release.tag_name }}.zip

0 commit comments

Comments
 (0)