-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (54 loc) · 1.74 KB
/
deployment.yml
File metadata and controls
56 lines (54 loc) · 1.74 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
name: Deploy MagicCap update
on:
push:
branches:
- stable
- beta
- alpha
jobs:
linux-build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: ">=1.17"
- name: Install Linux development dependencies
run: sudo apt update && sudo apt install -y libappindicator3-dev libxtst-dev libpng++-dev libxkbcommon-x11-0 xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev libx11-dev
- name: Run the build script
run: make linux-ci
- uses: actions/upload-artifact@v3
with:
name: MagicCap-3.0.0-1.amd64.rpm
path: bundles/MagicCap-3.0.0-1.amd64.rpm
- uses: actions/upload-artifact@v3
with:
name: magiccap_3.0.0_amd64.deb
path: bundles/magiccap_3.0.0_amd64.deb
# TODO: upload to package mirrors
darwin-build:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/setup-go@v3
with:
go-version: ">=1.17"
- name: Copy the certificate into the keychain
run: build/scripts/copy_certificate.sh
env:
P12_DATA: ${{ secrets.P12_DATA }}
- name: Run the build/deploy script
run: make darwin-ci
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
API_KEY: ${{ secrets.API_KEY }}
- uses: actions/upload-artifact@v3
with:
name: MagicCap.dmg
path: bundles/MagicCap.dmg