File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed
Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1+ name : build-release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Repo checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Install Go
17+ uses : actions/setup-go@v4
18+ with :
19+ go-version : 1.24.x
20+
21+ - name : Run GoReleaser
22+ uses : goreleaser/goreleaser-action@v6
23+ with :
24+ distribution : goreleaser
25+ version : " ~> v2"
26+ args : release --clean
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11package generator
22
33import (
4- "log "
4+ "os "
55
66 "github.com/hostinger/api-cli/cmd"
77 "github.com/spf13/cobra/doc"
@@ -10,6 +10,6 @@ import (
1010func main () {
1111 err := doc .GenMarkdownTree (cmd .RootCmd , "./docs" )
1212 if err != nil {
13- log . Fatal ( err )
13+ os . Exit ( 1 )
1414 }
1515}
You can’t perform that action at this time.
0 commit comments