Skip to content

Commit bac81b7

Browse files
feat: update plugin lib
1 parent 8f8609e commit bac81b7

File tree

4 files changed

+292
-10
lines changed

4 files changed

+292
-10
lines changed

.github/workflows/ci.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ jobs:
2828
- uses: actions/setup-go@v1
2929
with:
3030
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 ./...
3733
release:
3834
runs-on: ubuntu-latest
3935
needs: build
@@ -43,8 +39,7 @@ jobs:
4339
with:
4440
go-version: 1.14
4541
- run: echo "::add-path::~/go/bin"
46-
- name: Get release dependencies
47-
run: |
42+
- run: |
4843
go get github.com/mitchellh/gox
4944
go get github.com/tcnksm/ghr
5045
- uses: go-semantic-release/action@v1
@@ -53,7 +48,8 @@ jobs:
5348
github-token: ${{ secrets.GITHUB_TOKEN }}
5449
ghr: true
5550
- 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 -
5753
if: steps.semrel.outputs.version != ''
5854
- run: ghr $(cat .ghr) bin/
5955
if: steps.semrel.outputs.version != ''

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.14
44

55
require (
66
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
88
github.com/google/go-github/v32 v32.1.0
99
github.com/stretchr/testify v1.6.1
1010
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d

0 commit comments

Comments
 (0)