10
10
lint :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v2
14
- - uses : golangci/golangci-lint-action@v2
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-go@v3
15
+ with :
16
+ go-version : 1.19
17
+ - uses : golangci/golangci-lint-action@v3
15
18
build :
16
19
runs-on : ${{ matrix.os }}
17
20
needs : lint
@@ -20,35 +23,23 @@ jobs:
20
23
matrix :
21
24
os : [macos-latest, windows-latest, ubuntu-latest]
22
25
steps :
23
- - uses : actions/checkout@v2
24
- - uses : actions/setup-go@v2
26
+ - uses : actions/checkout@v3
27
+ - uses : actions/setup-go@v3
25
28
with :
26
- go-version : 1.17
29
+ go-version : 1.19
27
30
- run : go build ./cmd/files-updater-helm/
28
31
- run : go test -v ./...
29
32
release :
30
33
runs-on : ubuntu-latest
31
34
needs : build
32
35
steps :
33
- - uses : actions/checkout@v2
34
- - uses : actions/setup-go@v2
36
+ - uses : actions/checkout@v3
37
+ - uses : actions/setup-go@v3
35
38
with :
36
- go-version : 1.17
37
- - run : |
38
- go install github.com/mitchellh/gox@latest
39
- go install github.com/tcnksm/ghr@latest
39
+ go-version : 1.19
40
40
- uses : go-semantic-release/action@v1
41
- id : semrel
42
41
with :
43
- github-token : ${{ secrets.GITHUB_TOKEN }}
44
- ghr : true
45
- - run : |
46
- gox -parallel 4 -osarch="linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/files-updater-helm/pkg/updater.FUVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/files-updater-helm/
47
- cd bin/ && shasum -a 256 * > ./files-updater-helm_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
48
- if: steps.semrel.outputs.version != ''
49
- env:
50
- CGO_ENABLED: 0
51
- - run : ghr $(cat .ghr) bin/
52
- if : steps.semrel.outputs.version != ''
42
+ hooks : goreleaser,plugin-registry-update
53
43
env :
54
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
+ PLUGIN_REGISTRY_ADMIN_ACCESS_TOKEN : ${{ secrets.PLUGIN_REGISTRY_ADMIN_ACCESS_TOKEN }}
0 commit comments