-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·31 lines (23 loc) · 741 Bytes
/
release.sh
File metadata and controls
executable file
·31 lines (23 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/bash
# Release pipeline: tag the current commit and push the tag.
# The GitHub Actions release workflow (.github/workflows/release.yaml) builds
# and publishes the multi-platform desktop packages on tag push.
#
# Usage: ./release.sh <version>
# Examples:
# ./release.sh 3.0.165
# ./release.sh 3.0.165-beta.1
set -e
if [[ -z "$1" ]]; then
echo "Usage: $0 <version>" >&2
echo "Example: $0 3.0.165" >&2
echo " $0 3.0.165-beta.1" >&2
exit 1
fi
VERSION="$1"
echo "Releasing v${VERSION}..."
read -p "Press enter to tag v${VERSION} and push"
git tag "v${VERSION}"
git push origin "v${VERSION}"
echo "Tag pushed. CI will build and publish the release at:"
echo " https://github.com/sproctor/warlock3/actions"