-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (37 loc) · 1015 Bytes
/
release.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
on:
push:
tags:
- 'v*'
workflow_dispatch:
env:
COMPOSE_FILE: docker-compose.yaml
name: Release
jobs:
build:
strategy:
matrix:
arch:
- arm64
- amd64
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
with:
platforms: linux/${{ matrix.arch}}
- name: build
run: make pkg
env:
DOCKER_DEFAULT_PLATFORM: linux/${{ matrix.arch}}
- name: donwload ghr
run: |
curl -L -O -s https://github.com/tcnksm/ghr/releases/download/v0.16.2/ghr_v0.16.2_linux_amd64.tar.gz
tar zxf ghr_v0.16.2_linux_amd64.tar.gz
sudo mv ghr_v0.16.2_linux_amd64/ghr /usr/bin
- name: release
run: make github_release