Skip to content

Commit

Permalink
.github/workflows: Simplify goreleaser config
Browse files Browse the repository at this point in the history
parca-debuginfo is pure Go so cross compiling just needs a regular Go
toolchain.
  • Loading branch information
brancz committed Jul 14, 2023
1 parent 0dab130 commit 7fe9ee5
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fe9ee5

Please sign in to comment.