Skip to content

Commit 51165b1

Browse files
fix: Fix bugs in release script. (#106)
1 parent 9076146 commit 51165b1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

dev/publish-release.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
{
66
if [ -z "${NEW_VERSION:-}" ]; then
77
echo "error: Missing value for environment variable NEW_VERSION"
8-
echo "hint: Invoke this script as NEW_VERSION=M.N.P ./tools/scripts/publish-scip-ruby.sh"
8+
echo "hint: Invoke this script as NEW_VERSION=M.N.P ./tools/scripts/publish-release.sh"
99
exit 1
1010
fi
1111

@@ -30,11 +30,6 @@ if ! git diff --quiet --cached; then
3030
exit 1
3131
fi
3232

33-
if ! git remote -v | grep "origin" | grep -q "https://github.com/sourcegraph/scip.git"; then
34-
echo "error: remote 'origin' doesn't point to sourcegraph/scip"
35-
exit 1
36-
fi
37-
3833
if ! git rev-parse --abbrev-ref HEAD | grep -q "main"; then
3934
echo "error: Releases should be published from main but HEAD is on a different branch" >&2
4035
exit 1
@@ -58,4 +53,4 @@ git push origin "$TAG"
5853
echo ' bash -c '\''curl -L "https://github.com/sourcegraph/scip/releases/download/$TAG/scip-$OS-$ARCH.tar.gz"'\'' \'
5954
echo '| tar xzf - scip'
6055
echo '```'
61-
} | gh release create --title "scip-ruby v$NEW_VERSION" --notes-file -
56+
} | gh release create "$TAG" --title "scip v$NEW_VERSION" --notes-file -

0 commit comments

Comments
 (0)