Skip to content

fix: rely on OS temp directory (#486) #54

fix: rely on OS temp directory (#486)

fix: rely on OS temp directory (#486) #54

Workflow file for this run

name: goreleaser
on:
push:
tags:
- 'v*'
- '!*-test'
permissions:
contents: write
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.22
- name: Install cross-compile package
run: |
sudo apt update
sudo apt install -y gcc gcc-aarch64-linux-gnu musl build-essential
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.docker_username }}
password: ${{ secrets.docker_password }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --verbose
env:
BUILD_TAG: 'latest'
GOPATH: ${{ env.GOPATH }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}