-
-
Notifications
You must be signed in to change notification settings - Fork 25
109 lines (105 loc) · 3.96 KB
/
beta.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Release (beta)
on:
push:
branches:
- beta
jobs:
release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: NPM Setup
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: install
run: npm ci && (cd client && npm ci) && (cd reporter-client && npm ci)
- name: Release
run: npm run semantic-release
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build
run: npm run build
- name: Publish macOS
run: npm run publish:mac
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.mac_certs }}
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
APPLEID: ${{ secrets.apple_id }}
APPLEIDPASSWORD: ${{ secrets.apple_id_password }}
APPLE_ASCPROVIDER: ${{ secrets.apple_ascprovider }}
release-windows:
needs: release
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'beta'
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: NPM Setup
uses: filipstefansson/set-npm-token-action@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- name: install server
run: npm ci
env:
NPM_TOKEN: $${ secrets.NPM_TOKEN }
- name: Copy NPM config
run: cp ./.npmrc ./client/.npmrc && cp ./.npmrc ./reporter-client/.npmrc
- name: install client(s)
run: (cd client && npm ci) && (cd ../reporter-client && npm ci)
env:
NPM_TOKEN: $${ secrets.NPM_TOKEN }
- name: Build
run: npm run build
- name: Publish Windows
run: npm run publish:win
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPX_APPLICATION_ID: ${{ secrets.APPX_APPLICATION_ID }}
APPX_DISPLAY_NAME: ${{ secrets.APPX_DISPLAY_NAME }}
APPX_IDENTITY_NAME: ${{ secrets.APPX_IDENTITY_NAME }}
APPX_PUBLISHER: ${{ secrets.APPX_PUBLISHER }}
APPX_PUBLISHER_DISPLAY_NAME: ${{ secrets.APPX_PUBLISHER_DISPLAY_NAME }}
release-linux:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'beta'
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: NPM Setup
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: install labarchive-tools
run: sudo apt install libarchive-tools
- name: install
run: npm ci && (cd client && npm ci) && (cd reporter-client && npm ci)
- name: Build
run: npm run build
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
with:
snapcraft_token: ${{ secrets.snapcraft_token }}
- name: Publish Linux
run: npm run publish:linux
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}