forked from TurboWarp/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.51 KB
/
release.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
name: Release
on:
workflow_dispatch:
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Set Personal Access Token
run: git config --global url."https://${{ secrets.USER_TOKEN }}@github.com/".insteadOf ssh://[email protected]/
- name: Install Dependencies
run: npm install
- name: Download Library Files
run: npm run fetch
- name: Checkout e-ducation/scratch-vm
uses: actions/checkout@v2
with:
repository: e-ducation/scratch-vm
token: ${{ secrets.USER_TOKEN }}
ref: dev
path: scratch-vm
- name: Checkout e-ducation/scratch-gui
uses: actions/checkout@v2
with:
repository: e-ducation/scratch-gui
token: ${{ secrets.USER_TOKEN }}
ref: dev
path: scratch-gui
- name: resolve extension files
run: |
cp -r ./scratch-vm/src/extensions ./node_modules/scratch-vm/src
cp -r ./scratch-gui/src/lib/libraries/extensions ./node_modules/scratch-gui/src/lib/libraries
- name: Compile
run: npm run compile
env:
NODE_OPTIONS: --max-old-space-size=10000
- name: Package and Publish
run: npx --no-install electron-builder --publish always
env:
GH_TOKEN: ${{ secrets.USER_TOKEN }}