From 7fe9ee586d2c680f5dd36a89dbcf36ac778d02d4 Mon Sep 17 00:00:00 2001 From: Frederic Branczyk Date: Fri, 14 Jul 2023 14:58:31 +0200 Subject: [PATCH] .github/workflows: Simplify goreleaser config parca-debuginfo is pure Go so cross compiling just needs a regular Go toolchain. --- .github/workflows/release.yml | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cf50c6e..803817c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,35 +10,32 @@ permissions: env: # renovate: datasource=go depName=github.com/goreleaser/goreleaser - GORELEASER_VERSION: v1.10.2 + GORELEASER_VERSION: v1.18.2 jobs: binaries: name: Goreleaser release runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') - container: - image: docker.io/goreleaser/goreleaser-cross:v1.20.6 - options: --privileged - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - name: Check out the code - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2 + - name: Checkout + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # tag=v3.2.1 + uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 with: - go-version-file: 'go.mod' - cache: true + go-version-file: .go-version - - name: Fetch all tags - run: git fetch --force --tags - - - name: Run Goreleaser - run: goreleaser release --rm-dist --debug + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0 + with: + distribution: goreleaser + version: ${{ env.GORELEASER_VERSION }} + args: release --clean --timeout=60m + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Archive generated artifacts uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3.1.0