Skip to content

Commit 4454bd0

Browse files
committed
chore: test build
1 parent 7116090 commit 4454bd0

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 }}

generator/docs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package generator
22

33
import (
4-
"log"
4+
"os"
55

66
"github.com/hostinger/api-cli/cmd"
77
"github.com/spf13/cobra/doc"
@@ -10,6 +10,6 @@ import (
1010
func main() {
1111
err := doc.GenMarkdownTree(cmd.RootCmd, "./docs")
1212
if err != nil {
13-
log.Fatal(err)
13+
os.Exit(1)
1414
}
1515
}

0 commit comments

Comments
 (0)