Skip to content

Merge pull request #69 from boardgamers/glcanvas #29

Merge pull request #69 from boardgamers/glcanvas

Merge pull request #69 from boardgamers/glcanvas #29

Workflow file for this run

name: Docs
on:
push:
paths:
- ".github/workflows/docs.yml"
- "apps/docs/**"
branches:
- master
defaults:
run:
working-directory: apps/docs
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: corepack enable
- run: echo "${{ secrets.GIT_PAGES_PRIVATEKEY }}" > ~/key
- run: chmod 600 ~/key
- run: git config --global core.sshCommand "ssh -i ~/key -F /dev/null"
- run: pnpm install --filter {./}...
- run: pnpm run build
- run: git clone [email protected]:boardgamers/boardgamers.github.io pages --depth 1
- run: cp pages/CNAME .
- run: rm -Rf pages/*
- run: mv CNAME pages
- run: cp -R docs/.vuepress/dist/* pages
- run: git config --global user.name github-actions
- run: git config --global user.email [email protected]
- run: cd pages && git add . && git commit -m '📝 update doc' && git push