-
Notifications
You must be signed in to change notification settings - Fork 31
40 lines (36 loc) · 1.01 KB
/
static-darwin.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
name: static-darwin
on:
release:
types:
- published
jobs:
static-darwin:
runs-on: macos-14
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: Configure Git
run: |
git config --global user.name "Onionpipe CI"
git config --global user.email "onionpipe-ci@users.noreply.github.com"
- name: Build static binary
working-directory: ${{ github.workspace }}
run: |
./build/build_all_darwin.bash
- name: Upload darwin binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_path: dist/onionpipe-darwin-amd64-static
asset_name: onionpipe-darwin-amd64-static
asset_content_type: application/octet-stream
upload_url: ${{ github.event.release.upload_url }}