Skip to content

fix: Update Docusaurus deployment workflow for improved structure and… #5

fix: Update Docusaurus deployment workflow for improved structure and…

fix: Update Docusaurus deployment workflow for improved structure and… #5

Workflow file for this run

name: Deploy Docusaurus (Subfolder) to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
working-directory: ./physical-ai-textbook
run: npm install
- name: Build website
working-directory: ./physical-ai-textbook
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: physical-ai-textbook/build
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4