-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.1 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
name: release
on:
release:
types: [published]
jobs:
build:
name: Build Release Binaries
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: linux
arch: amd64
artifact_name: aepcli-linux-amd64
- os: darwin
arch: amd64
artifact_name: aepcli-darwin-amd64
- os: darwin
arch: arm64
artifact_name: aepcli-darwin-arm64
- os: windows
arch: amd64
artifact_name: aepcli-windows-amd64.exe
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Build binary
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: |
go build -o ${{ matrix.artifact_name }} ./cmd/aepcli
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
with:
files: ${{ matrix.artifact_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}