Build #88
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: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
schedule: | |
- cron: '52 18 * * 2' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout self | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Checkout source tree | |
uses: actions/checkout@v2 | |
with: | |
repository: TurboWarp/scratch-gui | |
path: scratch-gui | |
- name: Build | |
run: | | |
cd scratch-gui | |
npm ci | |
NODE_ENV=production ROUTING_STYLE=hash npm run build | |
- name: Patch | |
run: python3 patch.py | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: scratch-gui/build | |
single-commit: true | |
git-config-name: "mirror build bot" | |
git-config-email: "[email protected]" |