-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (43 loc) · 1.26 KB
/
release.yaml
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
42
43
44
45
46
47
48
49
50
51
52
name: release
on:
push:
tags:
- '**'
permissions:
contents: write
packages: write
jobs:
release:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: enabled # needed for docker manifests
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # we need the entire history to build changelog
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Setup QEMU for cross-compiling container images
uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Authenticate with GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install cross-compile dependencies
run: |
sudo apt update
sudo apt install -y gcc-arm-none-eabi gcc-aarch64-linux-gnu
- name: Run goreleaser
uses: goreleaser/goreleaser-action@v6
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY_OWNER: ${{ github.repository_owner }}