Skip to content

Commit c4d61e0

Browse files
Update release.yml
1 parent 0c31350 commit c4d61e0

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,25 @@ jobs:
3434
- uses: actions/checkout@v4
3535

3636
- run: |
37-
tar -czf /tmp/$NAME.tar.gz .
38-
if [ -f /tmp/$NAME.tar.gz ]; then; else
39-
echo "error:: title=Missing File::File /tmp/$NAME.tar.gz does not exist."
37+
FILE=/tmp/$NAME.tar.gz
38+
tar -czf $FILE .
39+
if [ -f $FILE ]; then
40+
echo "File $FILE exists."
41+
else
42+
echo "error:: title=Missing File::File $FILE does not exist."
4043
fi
4144
- uses: shogo82148/actions-upload-release-asset@v1
4245
with:
4346
upload_url: ${{ github.event.release.upload_url }}
4447
asset_path: /tmp/$NAME.tar.gz
4548

4649
- run: |
47-
zip -r /tmp/$NAME.zip .
48-
if [ -f /tmp/$NAME.zip ]; then; else
49-
echo "error:: title=Missing File::File /tmp/$NAME.zip does not exist."
50+
FILE=/tmp/$NAME.zip
51+
zip -r $FILE .
52+
if [ -f $FILE ]; then
53+
echo "File $FILE exists."
54+
else
55+
echo "error:: title=Missing File::File $FILE does not exist."
5056
fi
5157
- uses: shogo82148/actions-upload-release-asset@v1
5258
with:

0 commit comments

Comments
 (0)