Skip to content

Commit

Permalink
updated release action and goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
6missedcalls committed Oct 13, 2022
1 parent 4849019 commit 5cb7c23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
29 changes: 3 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ name: goreleaser
on:
push:
tags:
- "*"
- "v*"

jobs:
build-and-release:
strategy:
matrix:
os: [ubuntu-22.04, macos-12]
runs-on: ${{ matrix.os }}
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -20,27 +17,7 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Install Cross Compiler for linux/arm64
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get -y install gcc-aarch64-linux-gnu
- name: Run GoReleaser (Linux)
if: matrix.os == 'ubuntu-22.04'
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: build --rm-dist --id linux-build
- name: Upload Release Artifacts
uses: actions/upload-artifact@v2
with:
name: goreleaser
path: dist/
env:
RUNNER_ARCH: amd64
GITHUB_TOKEN: ${{ secrets.ACTIONS_GH_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
- name: Run GoReleaser (Darwin)
if: matrix.os == 'macos-12'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ builds:
- linux
goarch:
- amd64
- arm64
- id: darwin-build
env:
- CGO_ENABLED=1
Expand All @@ -42,3 +43,4 @@ brews:
tap:
owner: sonr-io
name: tap
folder: Formula

0 comments on commit 5cb7c23

Please sign in to comment.