Skip to content

remove parent-level dependencies #9

remove parent-level dependencies

remove parent-level dependencies #9

name: Generate Docs and Deploy Docusaurus
on:
push:
branches: [main, docusaurus]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Fetch schemas and package files from main
run: |
git fetch origin main
git checkout origin/main -- src/schemas src/errors
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install docusaurus dependencies
run: npm install
working-directory: ./docusaurus
- name: Generate schema documentation
run: npm run gendocs
working-directory: ./docusaurus
- name: Build Docusaurus site
run: npm run build
working-directory: ./docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DEPLOY_KEY }}
publish_dir: ./docusaurus/build