Merge pull request #69 from boardgamers/glcanvas #29
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: 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 |