Skip to content

Commit

Permalink
workflows: run goreleaser as a build step for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidd6 authored and jesseduffield committed Mar 25, 2020
1 parent e64057b commit 19719be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
go-version: 1.14.x
- name: Run goreleaser
uses: goreleaser/goreleaser-action@v1
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{secrets.GITHUB_API_TOKEN}}
- name: Get tag
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ jobs:
- name: Test code
run: |
./test.sh
- name: Install gox
working-directory: /tmp
run: |
go get github.com/mitchellh/gox
echo "::add-path::$(go env GOPATH)/bin"
- name: Build binaries
run: |
gox -parallel 4 -os "linux freebsd netbsd windows" -osarch "darwin/i386 darwin/amd64"
uses: goreleaser/goreleaser-action@v1
with:
args: --skip-publish --snapshot

0 comments on commit 19719be

Please sign in to comment.