-
Notifications
You must be signed in to change notification settings - Fork 27
38 lines (37 loc) · 1.17 KB
/
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
37
38
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: ./posenet2scratch
- run: sh ./posenet2scratch/install.sh
- run: npm run build
- name: npm install under posenet2scratch
run: npm install
working-directory: ./posenet2scratch
- name: Build posenet2scratch.mjs for xcratch
run: npm run build
working-directory: ./posenet2scratch
- name: Copy posenet2scratch.mjs to build folder
run: cp ./posenet2scratch/dist/posenet2scratch.mjs ./build
- name: Copy sample.sb3 to build folder
run: cp ./posenet2scratch/sample_projects/xcratch/sample.sb3 ./build
- name: Copy kashikokunaru.sb3 to build folder
run: cp ./posenet2scratch/sample_projects/xcratch/kashikokunaru.sb3 ./build
- uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./build