This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: vendor signtool.exe and add automated release scripts
- Loading branch information
Showing
8 changed files
with
126 additions
and
46 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
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
if [[ ! -e docker/build/VERSION.txt ]]; then | ||
echo "Error! VERSION.txt not found!" | ||
exit 1 | ||
fi | ||
|
||
CURRENT_VERSION=$(cat docker/build/VERSION.txt | tr -dc '[:print:]') | ||
|
||
if [[ -z $CURRENT_VERSION ]]; then | ||
echo "Error! Current VERSION.txt file is empty!" | ||
exit 1 | ||
fi | ||
|
||
LATEST_RELEASE="$(gh api repos/:owner/:repo/releases/latest --jq '.tag_name')" | ||
|
||
if [[ -z $LATEST_RELEASE ]]; then | ||
echo "Error! Failed to get current latest tag!" | ||
exit 1 | ||
fi | ||
|
||
if [[ $CURRENT_VERSION == "$LATEST_RELEASE" ]]; then | ||
echo "All Good! Latest reease is same as extracted!" | ||
else | ||
echo "Current Version: $CURRENT_VERSION" | ||
echo "Latest Release: $LATEST_RELEASE" | ||
|
||
echo "Create: Tag" | ||
git tag "$CURRENT_VERSION" | ||
|
||
echo "Create: Changelog" | ||
make changelog | ||
|
||
echo "Create: GH-Release" | ||
gh release create \ | ||
--notes-file docs/changelog.md \ | ||
--title "$CURRENT_VERSION" \ | ||
"$CURRENT_VERSION" \ | ||
docker/build/virtio-win.iso | ||
fi |
Binary file not shown.