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: BuessionShiroJS-docs CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: 1. set environment | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 2. install dep | |
run: | | |
rm -rf node_modules | |
npm install ydoc -g | |
yarn --frozen-lockfile | |
ydoc build | |
env: | |
CI: true | |
- name: 3. script deploy | |
env: | |
DEPLOY_ACCESS_TOKEN: ${{ secrets.DEPLOY_ACCESS_TOKEN }} | |
PUBLISH_BRANCH: gh-pages | |
PUBLISH_DIR: ./_site | |
CNAME: shirojs.buession.com | |
run: | | |
chmod +x ./scripts/deploy.sh | |
bash ./scripts/deploy.sh |