Skip to content

⬆️ [docs] Upgrade docusaurus #45

⬆️ [docs] Upgrade docusaurus

⬆️ [docs] Upgrade docusaurus #45

Workflow file for this run

name: 📝 Publish Docs
on:
push:
branches:
- main
paths:
- '.github/workflows/docs-publish.yml'
- 'docs/**'
- 'examples/**'
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
- run: npm ci
- run: npm run build
- uses: ./.github/actions/copy-examples-to-docs
- run: npm ci
working-directory: docs
- run: npm run build
working-directory: docs
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build