File tree 4 files changed +289
-8
lines changed
4 files changed +289
-8
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/condition-github/
34
-
35
- - name : Test
36
- run : go test -v ./...
31
+ - run : go build ./cmd/condition-github/
32
+ - run : go test -v ./...
37
33
release :
38
34
runs-on : ubuntu-latest
39
35
needs : build
53
49
github-token : ${{ secrets.GITHUB_TOKEN }}
54
50
ghr : true
55
51
- 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/condition-github/
52
+ gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/condition-github/pkg/condition.CIVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/condition-github/
53
+ cd bin/ && shasum -a 256 * > ./condition-github_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
57
54
if: steps.semrel.outputs.version != ''
58
55
- run : ghr $(cat .ghr) bin/
59
56
if : steps.semrel.outputs.version != ''
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ module github.com/go-semantic-release/condition-github
3
3
go 1.14
4
4
5
5
require (
6
- github.com/go-semantic-release/semantic-release/v2 v2.1 .0
6
+ github.com/go-semantic-release/semantic-release/v2 v2.3 .0
7
7
github.com/stretchr/testify v1.6.1
8
8
)
You can’t perform that action at this time.
0 commit comments