-
Notifications
You must be signed in to change notification settings - Fork 24
/
tag.sh
executable file
·39 lines (32 loc) · 858 Bytes
/
tag.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
#!/bin/bash
VERSION=$(cargo bin-version)
git add Cargo.toml
git add Cargo.lock
git add ./services/console/src/chunks/reference/en/changelog.mdx
# Generate the API docs from the server and the types for the UI
cargo gen-types
git add ./services/api/openapi.json
git add ./services/console/src/types/bencher.ts
# Generate CLI installer scripts
cargo gen-installer
git add ./services/cli/templates/output/install-cli.sh
git add ./services/cli/templates/output/install-cli.ps1
# Generate the Bencher CLI GitHub Action
cd ./services/action
npm install --include=dev
npm run build
git add ./dist/index.js
cd -
# Update UI version and types
cd ./services/console
npm version $VERSION
git add ./package.json
git add ./package-lock.json
cd -
TAG="v$VERSION"
COMMIT="Release $TAG"
echo $COMMIT
git commit -m "$COMMIT"
git tag $TAG
git push
git push origin $TAG