Workflow file for this run
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
# This workflow will generate and deploy a Docusaurus site | |
name: Generate and Deploy Docusaurus Documentation | |
on: | |
push: | |
branches: [docs] # Change to your main branch name | |
# pull_request: | |
# branches: [main] # Change to your main branch name | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "14" # Change to the Node.js version compatible with Docusaurus | |
- name: Install Docusaurus | |
run: npm install docusaurus -g | |
- name: Install dependencies | |
run: npm i | |
- name: Build Docusaurus site | |
run: npm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build |