Skip to content

Merge pull request #65 from Ravie403/switch-camera #31

Merge pull request #65 from Ravie403/switch-camera

Merge pull request #65 from Ravie403/switch-camera #31

Workflow file for this run

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