Skip to content

Commit 0b6726e

Browse files
committed
Fix ci
1 parent 0adf109 commit 0b6726e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
push:
55
tags:
66
- "[0-9]+.[0-9]+.[0-9]+"
7-
7+
permissions:
8+
contents: write
89
jobs:
910
build-and-upload:
1011
name: Build and upload
@@ -63,6 +64,13 @@ jobs:
6364
mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
6465
fi
6566
echo "ASSET=$dirname" >> $GITHUB_ENV
67+
if [ "${{ matrix.os }}" = "windows-latest" ]; then
68+
7z a "$dirname.zip" "$dirname"
69+
echo "ASSET=$dirname.zip" >> $GITHUB_ENV
70+
else
71+
tar -czf "$dirname.tar.gz" "$dirname"
72+
echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
73+
fi
6674
6775
- name: Release
6876
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)