-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathenvsetup.sh
More file actions
25 lines (22 loc) · 734 Bytes
/
envsetup.sh
File metadata and controls
25 lines (22 loc) · 734 Bytes
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
# download goreleaser from https://github.com/goreleaser/goreleaser/releases/
# and put in /usr/local/bin
# This can be useful to test/debug the release process locally
gitplm_goreleaser_build() {
goreleaser build --skip-validate --rm-dist
}
# before releasing, you need to tag the release
# you need to provide GITHUB_TOKEN in env or ~/.config/goreleaser/github_token
# generate tokens: https://github.com/settings/tokens/new
# enable repo and workflow sections
gitplm_goreleaser_release() {
goreleaser release --rm-dist
}
gitplm_format() {
gofmt -s -w .
prettier --write "**/*.md"
}
gitplm_update_examples() {
for bom in ASY-012-0012 ASY-002-0001 PCA-019-0000 ASY-001-0000; do
go run . -bom $bom || return
done
}