-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.go
More file actions
20 lines (18 loc) · 794 Bytes
/
release.go
File metadata and controls
20 lines (18 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main
import (
"github.com/flowcommerce/tools/executor"
)
func main() {
executor := executor.Create("track")
executor = executor.Add("git checkout main")
executor = executor.Add("git pull origin main")
executor = executor.Add("dev tag")
executor = executor.Add("npm install && npm prune")
executor = executor.Add("npm run build")
executor = executor.Add("mv dist/js/main.css dist/css/main.css")
executor = executor.Add("sed -i '.bak' 's/__APP_VERSION__/'$(sem-info tag latest)'/g' dist/index.html")
executor = executor.Add("aws s3 sync dist/css s3://track.flow.io/css/`sem-info tag latest`")
executor = executor.Add("aws s3 sync dist/js s3://track.flow.io/js/`sem-info tag latest`")
executor = executor.Add("aws s3 cp dist/index.html s3://track.flow.io")
executor.Run()
}