-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ben Robson
committed
Jun 5, 2024
1 parent
0343d6e
commit 66fe7da
Showing
1 changed file
with
9 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,7 @@ name: Generate and Deploy Docusaurus Documentation | |
|
||
on: | ||
push: | ||
branches: | ||
- docs # Change to your main branch name | ||
branches: [docs] # Change to your main branch name | ||
# pull_request: | ||
# branches: [main] # Change to your main branch name | ||
|
||
|
@@ -17,31 +16,26 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
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@latest -g | ||
run: npm install docusaurus -g | ||
|
||
- name: Install Dependencies | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build Docusaurus site | ||
run: npm run build | ||
|
||
- name: Deploy 🚀 | ||
uses: actions/checkout@v2 | ||
uses: JamesIves/[email protected] | ||
with: | ||
repository: JamesIves/github-pages-deploy-action | ||
ref: v4.4.1 | ||
env: | ||
NODE_VERSION: "14" | ||
GH_PAGES_BRANCH: gh-pages | ||
FOLDER: build | ||
branch: gh-pages | ||
folder: build |