forked from TurboWarp/mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 959 Bytes
/
build.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
39
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]"