Skip to content

Commit

Permalink
Fix Windows not capable of handling globs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharparam committed Aug 20, 2023
1 parent f77f95d commit fdc4eed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,18 @@ jobs:
cp "${{ env.TARGET_DIR }}/release/facti.exe" "$staging/"
7z a "$dist/$staging.zip" "$staging"
certutil -hashfile "$dist/$staging.zip" SHA512 > "$dist/$staging.zip.sha512"
echo "ASSET=$dist/$staging.zip" >> $GITHUB_ENV
echo "ASSET_SUM=$dist/$staging.zip.sha512" >> $GITHUB_ENV
else
cp "${{ env.TARGET_DIR }}/release/facti" "$staging/"
mkdir "$staging"/man
cp target/assets/man/* "$staging"/man
tar --zstd -cvf "$dist/$staging.tar.zst" "$staging"
shasum -a 512 "$dist/$staging.tar.zst" > "$dist/$staging.tar.zst.sha512"
echo "ASSET=$dist/$staging.tar.zst" >> $GITHUB_ENV
echo "ASSET_SUM=$dist/$staging.tar.zst.sha512" >> $GITHUB_ENV
fi
- name: Upload release archives
run: gh release upload ${{ github.ref_name }} target/dist/*
run: gh release upload ${{ github.ref_name }} ${{ env.ASSET }} ${{ env.ASSET_SUM }}
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit fdc4eed

Please sign in to comment.