Skip to content

Commit

Permalink
Merge pull request #687 from linkedin/fix-goreleaser-action
Browse files Browse the repository at this point in the history
Fix goreleaser github action
  • Loading branch information
bai authored Feb 16, 2021
2 parents e81cfaa + b6edcfa commit 2808a3e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: 1.15.x

- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
# See https://github.com/actions/setup-go/issues/14
- name: Setup env
run: |
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin"
shell: bash

- name: Login to GitHub Registry
run: |
docker login docker.pkg.github.com -u bai -p "${GITHUB_TOKEN}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
Expand Down

0 comments on commit 2808a3e

Please sign in to comment.