Merge pull request #28 from UniversalDot/develop #37
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: Deploy Docs to universaldot.github.io | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
jobs: | |
deploy-docs: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [ 14.x ] | |
steps: | |
- uses: actions/checkout@v2 | |
# - uses: actions/setup-node@v2 | |
# with: | |
# node-version: ${{ matrix.node-version }} | |
# cache: 'yarn' | |
- name: Install Yarn dependencies | |
working-directory: ./wiki | |
run: yarn install | |
- name: Build Docusaurus | |
working-directory: ./wiki | |
run: yarn build | |
- name: Deploy build directory to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
external_repository: UniversalDot/universaldot.github.io | |
publish_branch: master | |
publish_dir: ./wiki/build |