use crazy-max #37
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 specification | |
| on: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| # this avoids node running out of memory while building | |
| NODE_OPTIONS: --max_old_space_size=20480 | |
| jobs: | |
| deploy-gh-pages: | |
| permissions: | |
| pages: write | |
| id-token: write | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm run build:docs | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: build/docs/gatsby/public | |
| commit_message: "Deploy to GitHub Pages" |