31 lines (31 loc) 路 1.02 KB
/
deploy.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
name: Deploy to github pages branch
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '13.x'
- run: yarn install
- run: yarn build:en
- uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: en
PUBLISH_DIR: ./enOut
- run: yarn build:jp
- uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: jp
PUBLISH_DIR: ./jpOut
- run: git clean -f
- run: git checkout en
- run: ./node_modules/now/dist/index.js --prod --name y-combinator-for-non-programmers-en --token=${{ secrets.ZEIT_EN_TOKEN }}
- run: git checkout jp
- run: ./node_modules/now/dist/index.js --prod --name y-combinator-for-non-programmers-jp --token=${{ secrets.ZEIT_JP_TOKEN }}