There was an error while loading. Please reload this page.
1 parent 896479a commit f5c2a21Copy full SHA for f5c2a21
2 files changed
.github/goreleaser.yml
.github/workflows/ci.yml
@@ -0,0 +1,42 @@
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ tags: ["v*"]
7
+ pull_request:
8
9
+ workflow_dispatch:
10
11
+jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v6
16
17
+ - name: Set up Go
18
+ uses: actions/setup-go@v6
19
+ with:
20
+ go-version-file: "go.mod"
21
22
+ - name: Build
23
+ run: go build -v ./...
24
25
+ - name: Test
26
+ run: go test -v ./...
27
28
+ release:
29
30
+ if: startsWith(github.ref, 'refs/tags/')
31
+ needs: test
32
+ permissions:
33
+ contents: write
34
35
36
37
+ - name: Create Release
38
+ uses: softprops/action-gh-release@v3
39
40
+ generate_release_notes: true
41
+ env:
42
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments