Skip to content

Commit

Permalink
Use goreleaser to build snapshot instead of invoking go build
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaldjorMike committed Jul 31, 2020
1 parent c19155f commit 1e7701a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cedrickring/[email protected]
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Build snapshot with GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: build --rm-dist --snapshot
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
with:
fetch-depth: 0
-
name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
Expand Down

0 comments on commit 1e7701a

Please sign in to comment.