-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1020 Bytes
/
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
name: Release
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Build
run: |
# Windows
GOOS=windows GOARCH=amd64 go build -trimpath -o restoration-windows-amd64.exe
# Linux
GOOS=linux GOARCH=amd64 go build -trimpath -o restoration-linux-amd64
# MacOS Intel
GOOS=darwin GOARCH=amd64 go build -trimpath -o restoration-darwin-amd64
# MacOS ARM
GOOS=darwin GOARCH=arm64 go build -trimpath -o restoration-darwin-arm64
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
restoration-windows-amd64.exe
restoration-linux-amd64
restoration-darwin-amd64
restoration-darwin-arm64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}