updated docs #649
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Docusaurus Site | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 21 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Cache Docusaurus build | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .docusaurus | |
| node_modules/.cache | |
| # Cache keyed by OS, package-lock hash, and current commit SHA | |
| key: ${{ runner.os }}-docusaurus-${{ hashFiles('**/package-lock.json') }}-${{ github.sha }} | |
| # Fallback to the most recent cache for this OS/dependencies if exact SHA doesn't match | |
| restore-keys: | | |
| ${{ runner.os }}-docusaurus-${{ hashFiles('**/package-lock.json') }}- | |
| ${{ runner.os }}-docusaurus- | |
| - name: Build website | |
| run: npm run build | |
| env: | |
| NODE_OPTIONS: --max_old_space_size=4096 | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| publish_dir: ./build | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| force_orphan: true |