-
Notifications
You must be signed in to change notification settings - Fork 310
/
Copy pathrelease-ci.sh
executable file
·49 lines (37 loc) · 1.08 KB
/
release-ci.sh
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#
# Do a complete release. Run on CI.
# Upload assets, run goreleaser, and notify Tilt Cloud of the new release binaries.
set -ex
if [[ "$(which brew)" == "" ]]; then
echo "Missing Homebrew"
exit 1
fi
if [[ "$GITHUB_TOKEN" == "" ]]; then
echo "Missing GITHUB_TOKEN"
exit 1
fi
if [[ "$DOCKER_TOKEN" == "" ]]; then
echo "Missing DOCKER_TOKEN"
exit 1
fi
if [[ "$TILT_CLOUD_TOKEN" == "" ]]; then
echo "Missing Tilt release token"
exit 1
fi
DIR=$(dirname "$0")
cd "$DIR/.."
echo "$DOCKER_TOKEN" | docker login --username "$DOCKER_USERNAME" --password-stdin
mkdir -p ~/.windmill
echo "$TILT_CLOUD_TOKEN" > ~/.windmill/token
git fetch --tags
git config --global user.email "[email protected]"
git config --global user.name "Tilt Dev"
VERSION=$(git describe --abbrev=0 --tags)
CI=false make build-js
goreleaser --clean
./scripts/release-update-tilt-repo.sh "$VERSION"
./scripts/release-update-tilt-docs-repo.sh "$VERSION"
./scripts/record-release.sh "$VERSION"
./scripts/release-update-homebrew-core.sh "$VERSION"
./scripts/release-update-extension-repo.sh "$VERSION"