ci: Trying to rename the gman Windows executable so it can be picked up when archiving everything else

This commit is contained in:
2025-09-15 15:06:23 -06:00
parent 32ea7ea35d
commit 3d93b5b479
4 changed files with 14 additions and 52 deletions
+12 -11
View File
@@ -313,18 +313,19 @@ jobs:
cd $dist_dir
if [[ "$RUNNER_OS" == "Windows" ]]; then
archive=$dist_dir/$name.exe
sha=$dist_dir/$name.sha256
certutil -hashfile $name.exe sha256 | grep -E [A-Fa-f0-9]{64} > $sha
echo "archive=dist/$name.exe" >> $GITHUB_OUTPUT
echo "sha=dist/$name.sha256" >> $GITHUB_OUTPUT
mv gman.exe $name.exe
archive=$dist_dir/$name.exe
sha=$dist_dir/$name.sha256
certutil -hashfile $name.exe sha256 | grep -E [A-Fa-f0-9]{64} > $sha
echo "archive=dist/$name.exe" >> $GITHUB_OUTPUT
echo "sha=dist/$name.sha256" >> $GITHUB_OUTPUT
else
archive=$dist_dir/$name.tar.gz
sha=$dist_dir/$name.sha256
tar -czf $archive *
shasum -a 256 $archive > $sha
echo "archive=dist/$name.tar.gz" >> $GITHUB_OUTPUT
echo "sha=dist/$name.sha256" >> $GITHUB_OUTPUT
archive=$dist_dir/$name.tar.gz
sha=$dist_dir/$name.sha256
tar -czf $archive *
shasum -a 256 $archive > $sha
echo "archive=dist/$name.tar.gz" >> $GITHUB_OUTPUT
echo "sha=dist/$name.sha256" >> $GITHUB_OUTPUT
fi
- name: Publish Archive and SHA