Skip to content

chore: update workflow #4

chore: update workflow

chore: update workflow #4

Workflow file for this run

name: goreleaser
on:
push:
tags:
- 'v*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.4'
- name: Install dependencies
run: |
go mod tidy
go mod download
- name: Cross-compile with Makefile
run: |
make -f Makefile.cross-compiles build-all
- name: Prepare artifacts for GoReleaser
run: |
mkdir -p .goreleaser_artifacts
cp dist/* .goreleaser_artifacts/
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean --draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}