Skip to content

fix: deployment workflow key #6

fix: deployment workflow key

fix: deployment workflow key #6

name: Generate Docs and Deploy Docusaurus
on:
push:
branches:
- docusaurus
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install parent-level dependencies
run: npm install
working-directory: ./
- name: Install 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