-
Notifications
You must be signed in to change notification settings - Fork 611
75 lines (60 loc) · 2.06 KB
/
desktop-app-release.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
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
name: Desktop App Release
on:
push:
branches:
- v1.0
pull_request:
branches:
- v1.0 #remove this before committing!
jobs:
## todo - add just release/copy to get binary in place first...
bundle:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Add MacOS certs for signing and notarization
run: ./add-osx-cert.sh
working-directory: ui/desktop
env:
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }}
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci
working-directory: ui/desktop
- name: Make default Goose App
run: npm run bundle:default
working-directory: ui/desktop
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
- name: Upload default
uses: actions/upload-artifact@v3
with:
name: Goose.zip
path: ui/desktop/out/Goose-darwin-arm64/Goose.zip
- name: Make preconfigured Goose App
run: npm run bundle:preconfigured
working-directory: ui/desktop
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
GOOSE_BUNDLE_HOST: ${{ secrets.APPLE_TEAM_ID }}
GOOSE_BUNDLE_MODEL: ${{ secrets.GOOSE_BUNDLE_MODEL }}
GOOSE_BUNDLE_TYPE: ${{ secrets.GOOSE_BUNDLE_TYPE }}
- name: Upload preconfigured
uses: actions/upload-artifact@v3
with:
name: Goose-preconfigured.app
path: ui/desktop/out/Goose-darwin-arm64/Goose.zip
- name: Upload preconfigured
uses: actions/upload-artifact@v3
with:
name: Goose-preconfigured.zip
path: ui/desktop/out/Goose-darwin-arm64/Goose.zip