From 19719becf584d44a3b1e08330663a395569dc666 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Wed, 25 Mar 2020 11:03:59 +0100 Subject: workflows: run goreleaser as a build step for CI --- .github/workflows/cd.yml | 2 -- .github/workflows/ci.yml | 10 +++------- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to '.github') diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 792ac05dd..84185673f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a321a5e0..dbb8854fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 -- cgit v1.2.3