-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (79 loc) · 2.09 KB
/
Copy pathbinary.yml
File metadata and controls
94 lines (79 loc) · 2.09 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Binary CI/CD
on:
push:
tags: ["v*.*.*"]
jobs:
build-amd64:
runs-on: ubuntu-22.04
permissions:
contents: write
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Release
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean --config goreleaser/amd64.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Artifact Linux
uses: actions/upload-artifact@v4
with:
name: build_linux_amd64
path: dist/*linux*
- name: Artifact FreeBSD
uses: actions/upload-artifact@v4
with:
name: build_freebsd_amd64
path: dist/*freebsd*
- name: Artifact Darwin
uses: actions/upload-artifact@v4
with:
name: build_darwin_amd64
path: dist/*darwin*
- name: Artifact Windows
uses: actions/upload-artifact@v4
with:
name: build_windows_amd64
path: dist/*windows*
build-arm64:
runs-on: ubuntu-22.04-arm
permissions:
contents: write
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Release
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean --config goreleaser/arm64.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Artifact Linux
uses: actions/upload-artifact@v4
with:
name: build_linux_arm64
path: dist/*linux*
- name: Artifact Darwin
uses: actions/upload-artifact@v4
with:
name: build_darwin_amd64
path: dist/*darwin*