Skip to content

Commit

Permalink
add rest of github pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MadcapJake committed Feb 1, 2024
1 parent 4e8b6b0 commit c532f79
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

name: Deploy Docusaurus site to Pages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:

Expand All @@ -27,6 +32,26 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- run: npm run docusaurus parse
- run: npm run docusaurus glossary
- run: npm run build
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3
with:
path: "build/"

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit c532f79

Please sign in to comment.