Merge pull request #230 from davidishere1/fix/pagination-decimals-res… #73
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
| # Builds the static site and pushes it to branch `gh-pages`. | |
| # | |
| # Enable the live URL once: | |
| # Repo → Settings → Pages → Build and deployment → Source: "Deploy from a branch" | |
| # Branch: gh-pages / folder: / (root) | |
| # | |
| # Site: https://<owner>.github.io/<repo>/ | |
| name: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: github-pages-deploy | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| - name: Install | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| env: | |
| BASE_PATH: /${{ github.event.repository.name }} | |
| # Static export mode: skips API routes (incompatible with GitHub Pages). | |
| # The /api/stats route is active in Vercel / `next start` deployments. | |
| NEXT_EXPORT: "true" | |
| - name: Publish to gh-pages branch | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./out | |
| force_orphan: true | |
| # Attribute Pages deploy commits to this repo’s owner (e.g. prodbycorne on a fork). | |
| user_name: ${{ github.repository_owner }} | |
| user_email: ${{ github.repository_owner }}@users.noreply.github.com |