-
Notifications
You must be signed in to change notification settings - Fork 67
36 lines (35 loc) · 1008 Bytes
/
deploy.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
name: Deploy
on:
push:
branches:
- master
tags:
- "!*"
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: LLK/scratch-gui
ref: develop
- run: npm install
- uses: actions/checkout@v2
with:
path: ./ml2scratch
- run: sh ./ml2scratch/install.sh
- run: npm run build
- name: npm install under ml2scratch
run: npm install
working-directory: ./ml2scratch
- name: Build ml2scratch.mjs for xcratch
run: npm run build
working-directory: ./ml2scratch
- name: Copy ml2scratch.mjs to build folder
run: cp ./ml2scratch/dist/ml2scratch.mjs ./build
- name: Copy sample.sb3 to build folder
run: cp ./ml2scratch/sample_projects/xcratch/sample.sb3 ./build
- uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./build