File tree 4 files changed +292
-10
lines changed
4 files changed +292
-10
lines changed Original file line number Diff line number Diff line change 28
28
- uses : actions/setup-go@v1
29
29
with :
30
30
go-version : 1.14
31
-
32
- - name : Build
33
- run : go build ./cmd/provider-github/
34
-
35
- - name : Test
36
- run : go test -v ./...
31
+ - run : go build ./cmd/provider-github/
32
+ - run : go test -v ./...
37
33
release :
38
34
runs-on : ubuntu-latest
39
35
needs : build
43
39
with :
44
40
go-version : 1.14
45
41
- run : echo "::add-path::~/go/bin"
46
- - name : Get release dependencies
47
- run : |
42
+ - run : |
48
43
go get github.com/mitchellh/gox
49
44
go get github.com/tcnksm/ghr
50
45
- uses : go-semantic-release/action@v1
53
48
github-token : ${{ secrets.GITHUB_TOKEN }}
54
49
ghr : true
55
50
- run : |
56
- gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/provider-github/
51
+ gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/provider-github/pkg/provider.PVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/provider-github/
52
+ cd bin/ && shasum -a 256 * > ./provider-github_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
57
53
if: steps.semrel.outputs.version != ''
58
54
- run : ghr $(cat .ghr) bin/
59
55
if : steps.semrel.outputs.version != ''
Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/Masterminds/semver/v3 v3.1.0
7
- github.com/go-semantic-release/semantic-release/v2 v2.1 .0
7
+ github.com/go-semantic-release/semantic-release/v2 v2.3 .0
8
8
github.com/google/go-github/v32 v32.1.0
9
9
github.com/stretchr/testify v1.6.1
10
10
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
You can’t perform that action at this time.
0 commit comments