-
Notifications
You must be signed in to change notification settings - Fork 4
74 lines (71 loc) · 2.42 KB
/
github-actions-build.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
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
name: "aline build"
on:
push:
branches:
- master
- develop
jobs:
package:
strategy:
matrix:
platform: [ ubuntu-latest,windows-latest,macos-latest ]
go-version: [ 1.19 ]
node-version: [18]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# You may need to manually build you frontend manually here, unless you have configured frontend build and install commands in wails.json.
- name: build
if: matrix.platform == 'ubuntu-latest'
run: make web linux
- name: upload artifacts
if: matrix.platform == 'ubuntu-latest'
uses: actions/upload-artifact@v2
with:
name: aline-linux-amd64
path: aline
- name: build
if: matrix.platform == 'windows-latest'
run: make web windows
- name: upload artifacts
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: aline-windows-amd64
path: aline.exe
- name: build
if: matrix.platform == 'macos-latest'
run: make web macos
- name: MacOS download gon for code signing and app notarization
if: matrix.platform == 'macos-latest'
run: |
brew install mitchellh/gon/gon
- name: Import Code-Signing Certificates for macOS
if: matrix.platform == 'macos-latest'
uses: Apple-Actions/import-codesign-certs@v1
with:
# The certificates in a PKCS12 file encoded as a base64 string
p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
# The password used to import the PKCS12 file.
p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
- name: Sign our macOS binary
if: matrix.platform == 'macos-latest'
run: |
echo "Signing Package"
gon -log-level=info ./build/darwin/gon-sign.json
env:
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
- name: upload artifacts macOS
if: matrix.platform == 'macos-latest'
uses: actions/upload-artifact@v3
with:
name: aline-darwin-amd64
path: aline.dmg