-
-
Notifications
You must be signed in to change notification settings - Fork 33
42 lines (33 loc) · 988 Bytes
/
goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checking out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setting up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.1'
- name: Install cross-compiler for linux/arm64
run: sudo apt-get -y install gcc-aarch64-linux-gnu
- name: Install make
run: sudo apt-get -y install make
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Running GoReleaser
run: |
docker run --rm \
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
-v /var/run/docker.sock:/var/run/docker.sock \
ghcr.io/goreleaser/goreleaser-cross:v1.19.6 release --clean --config .goreleaser.yaml