diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1deaac5..2183762a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ccd81b70..a0400745 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -16,6 +16,7 @@ builds: - linux goarch: - amd64 + - arm64 - id: darwin-build env: - CGO_ENABLED=1 @@ -42,3 +43,4 @@ brews: tap: owner: sonr-io name: tap + folder: Formula