-
-
Notifications
You must be signed in to change notification settings - Fork 83
46 lines (39 loc) · 1.19 KB
/
continuous-delivery-binaries.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
name: Continuous Delivery
on:
release:
types:
- published
jobs:
release:
name: Binaries
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
args: --config=./.github/golangci.yaml
skip-cache: true
- name: Test
run: go test ./...
- name: Build
run: make release
- name: Upload
run: |
./upload.sh ./bin/script_exporter-darwin-amd64 application/x-binary
./upload.sh ./bin/script_exporter-darwin-arm64 application/x-binary
./upload.sh ./bin/script_exporter-linux-amd64 application/x-binary
./upload.sh ./bin/script_exporter-linux-armv7 application/x-binary
./upload.sh ./bin/script_exporter-linux-arm64 application/x-binary
./upload.sh ./bin/script_exporter-windows-amd64.exe application/x-binary
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}