Adjust indents. #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |