Skip to content

Commit

Permalink
use goreleaser in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mandoway committed Oct 4, 2024
1 parent 5cfc79f commit 9be46a4
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,18 @@ jobs:
release:
runs-on: ubuntu-latest
needs: [tests]
env:
GO_VERSION: 1.23.2
container:
image: ghcr.io/goreleaser/goreleaser-cross:${GO_VERSION}
env:
CGO_ENABLED: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser in Docker
run: goreleaser release --clean

0 comments on commit 9be46a4

Please sign in to comment.