-
Notifications
You must be signed in to change notification settings - Fork 13
64 lines (58 loc) · 1.75 KB
/
pull_request.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
name: Process new extensions
on: [pull_request]
jobs:
deploy:
name: Deploy extensions
runs-on: ubuntu-latest
steps:
- name: Checkout extensions
uses: actions/checkout@v3
- name: Checkout dist
uses: actions/checkout@v3
with:
repository: moonlight-mod/extensions-dist
path: dist
ref: main
ssh-key: ${{ secrets.DIST_SSH_KEY }}
persist-credentials: true
- name: Checkout runner
uses: actions/checkout@v3
with:
repository: moonlight-mod/extensions-runner
path: runner
ref: main
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Build runner Docker image
uses: docker/build-push-action@v2
with:
context: ${{ github.workspace }}/runner
file: ${{ github.workspace }}/runner/Dockerfile
push: false
tags: moonlight-mod/extensions-runner:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run runner
env:
EXT_MANIFESTS_PATH: ${{ github.workspace }}/exts
EXT_DIST_PATH: ${{ github.workspace }}/dist
EXT_WORK_PATH: ${{ github.workspace }}/work
run: |
cd $EXT_RUNNER_PATH
pnpm run runner
cd $EXT_MANIFESTS_PATH
- name: Upload changed asars
uses: actions/upload-artifact@v2
with:
name: asars
path: ${{ github.workspace }}/work/changed/*.asar