Skip to content

Commit 52b7d8a

Browse files
committed
chore: build with gorelease in the pr
1 parent da2952e commit 52b7d8a

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/workflows/coverage-report.yaml renamed to .github/workflows/build.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Coverage Report
1+
name: Build
22

33
on:
44
- push
55
- pull_request
66

77
jobs:
8-
TestAndReport:
8+
Test:
99
runs-on: ubuntu-20.04
1010
steps:
1111
- name: Set up Go
@@ -21,3 +21,18 @@ jobs:
2121
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
2222
run: |
2323
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.out --force-coverage-parser go
24+
25+
Build:
26+
runs-on: ubuntu-20.04
27+
steps:
28+
- name: Set up Go
29+
uses: actions/setup-go@v3
30+
with:
31+
go-version: 1.18.x
32+
- uses: actions/[email protected]
33+
- name: Run GoReleaser
34+
uses: goreleaser/[email protected]
35+
with:
36+
github_token: ${{ secrets.GH_PUBLISH_SECRETS }}
37+
version: v1.14.0
38+
args: release --skip-publish --rm-dist --snapshot

.goreleaser.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ builds:
88
- env:
99
- CGO_ENABLED=0
1010
binary: atest
11-
dir: cmd
1211
goos:
1312
- linux
1413
- windows

root.go renamed to main.go

File renamed without changes.

0 commit comments

Comments
 (0)