-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (23 loc) · 1.1 KB
/
main.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
name: main
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: mkdir -p gh-pages
- run: mv ./screenshot/* gh-pages/
- run: cd game ; yarn install --frozen-lockfile ; chmod +x ./script/build.sh ; ./script/build.sh ; mv dist/* ../gh-pages/
- run: cd image-crusher-ui ; yarn install --frozen-lockfile ; yarn build ; mv dist ../gh-pages/image-crusher-ui
- run: cd mapedit ; yarn install --frozen-lockfile ; yarn build ; mv dist ../gh-pages/mapedit
- run: cd postmortem ; yarn install --frozen-lockfile ; yarn build ; mv dist ../gh-pages/postmortem
- run: wget https://github.com/Platane/js13k-2017/raw/image-crush-result/image-crush-result.json --output-document=gh-pages/image-crusher-ui/image-crush-result.json
- uses: crazy-max/[email protected]
with:
target_branch: gh-pages
build_dir: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}