Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #706 from avh4/release/sign-artifacts
Build release CI: sign artifacts
- Loading branch information
Showing
6 changed files
with
36 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
set -euo pipefail | ||
|
||
VERSION="$(git describe --abbrev=8)" | ||
for i in "$@"; do | ||
echo "Extracting $i" | ||
unzip -d dist/ "$i" | ||
done | ||
|
||
pushd package/win/elm-format | ||
tar zxvf "elm-format-${VERSION}-win-i386.tgz" | ||
zip "elm-format-${VERSION}-win-i386.zip" elm-format.exe | ||
popd | ||
|
||
cp -v package/win/elm-format/elm-format-"${VERSION}"-win-i386.zip ./ | ||
|
||
echo "Verifying signatures" | ||
for i in dist/*.{zip,tgz}; do | ||
echo ">>> $i" | ||
if [ -f "$i.sig" ]; then | ||
gpgv --keyring "$(pwd)"/keys/github-actions.gpg "$i".sig "$i" | ||
else | ||
echo "WARNING: No signature" | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters