File tree Expand file tree Collapse file tree 2 files changed +32
-11
lines changed Expand file tree Collapse file tree 2 files changed +32
-11
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
build :
13
13
runs-on : ubuntu-latest
14
- permissions :
15
- contents : write
16
14
steps :
17
- - uses : actions/checkout@v2
15
+ - uses : actions/checkout@v4
18
16
with :
19
17
fetch-depth : 0
20
- - uses : actions/setup-go@v2
18
+ - uses : actions/setup-go@v5
21
19
with :
22
20
go-version : stable
23
21
- run : go mod tidy
24
22
- run : go test -v ./...
25
- - uses : docker/login-action@v1
26
- with :
27
- registry : ghcr.io
28
- username : ${{ github.repository_owner }}
29
- password : ${{ secrets.GH_PAT }}
30
23
- uses : goreleaser/goreleaser-action@v6
31
- if : success() && startsWith(github.ref, 'refs/tags/') # only on tags
32
24
with :
33
25
distribution : pro
34
26
version : latest
35
- args : release --clean
27
+ args : release --clean --snapshot
36
28
env :
37
29
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
30
dependabot :
Original file line number Diff line number Diff line change
1
+ name : release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : write
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ with :
16
+ fetch-depth : 0
17
+ - uses : actions/setup-go@v5
18
+ with :
19
+ go-version : stable
20
+ - name : npm-login
21
+ run : |
22
+ npm config set '//registry.npmjs.org/:_authToken'=${{ secrets.NPM_TOKEN }}
23
+ - uses : goreleaser/goreleaser-action@v6
24
+ with :
25
+ distribution : pro
26
+ version : latest
27
+ args : release --clean
28
+ env :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments