We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08456c9 commit 754c4f2Copy full SHA for 754c4f2
scripts/publish_release.sh
@@ -0,0 +1,27 @@
1
+#!/bin/bash
2
+
3
+set -euo pipefail xtrace
4
5
+if [[ -n $(git status --porcelain | grep -v VERSION) ]]; then
6
+ echo "❌ There are other un-staged changes to the repository besides VERSION"
7
+ exit 1
8
+fi
9
10
+VERSION="$(cat VERSION)"
11
12
+echo "Publishing version v$VERSION..."
13
14
+make version
15
+git add --all
16
+git commit -m "v$VERSION"
17
+git tag v$VERSION
18
+git push origin main v$VERSION
19
20
+if grep -qE "alpha|beta" VERSION; then
21
+ gh release create v$VERSION --title=v$VERSION --prerelease --notes=""
22
+else
23
+ gh release create v$VERSION --title=v$VERSION
24
25
26
27
+echo "✅ Published! version v$VERSION"
0 commit comments