fix: rely on OS temp directory (#486) #54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |