-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (39 loc) · 972 Bytes
/
browser.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
name: Browser extension builds
on:
push:
branches:
- develop
jobs:
browser:
name: Browser extension builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 9
run_install: false
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build moonlight
env:
NODE_ENV: production
run: pnpm run build
- name: Build MV3
run: pnpm run browser
- name: Build MV2
run: pnpm run browser-mv2
- name: Upload MV3
uses: actions/upload-artifact@v4
with:
name: browser
path: ./dist/browser
- name: Upload MV2
uses: actions/upload-artifact@v4
with:
name: browser-mv2
path: ./dist/browser-mv2