Skip to content

Commit

Permalink
Merge pull request #31 from spwoodcock/build/fix-goreleaser-cross
Browse files Browse the repository at this point in the history
Use goreleaser-cross container img for gh release workflow
  • Loading branch information
iandees authored Nov 23, 2024
2 parents eeccc36 + 5003a23 commit 231a971
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
name: goreleaser

on:
push:
tags:
- '*'
release:
types: [published]

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest

container:
image: docker.io/goreleaser/goreleaser-cross:v1.23

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Required because of https://github.com/actions/checkout/issues/766
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
goreleaser release

0 comments on commit 231a971

Please sign in to comment.