Skip to content

docs + split code - component per file #13

docs + split code - component per file

docs + split code - component per file #13

Workflow file for this run

name: Deploy Docusaurus
on:
push:
branches:
- develop
jobs:
build-and-deploy:
environment:
name: github-pages
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build
- name: List contents of after build
run: ls -la ./
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/build
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}