Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
nmeylan committed Jun 28, 2024
1 parent 0adf109 commit 0b6726e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -4,7 +4,8 @@ on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: write
jobs:
build-and-upload:
name: Build and upload
@@ -63,6 +64,13 @@ jobs:
mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
fi
echo "ASSET=$dirname" >> $GITHUB_ENV
if [ "${{ matrix.os }}" = "windows-latest" ]; then
7z a "$dirname.zip" "$dirname"
echo "ASSET=$dirname.zip" >> $GITHUB_ENV
else
tar -czf "$dirname.tar.gz" "$dirname"
echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
fi
- name: Release
uses: softprops/action-gh-release@v1

0 comments on commit 0b6726e

Please sign in to comment.