fix: update nias-island.md #76
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: Build and deploy 11ty site to Pages | |
| on: | |
| # Runs on pushes targeting the default branch | |
| push: | |
| branches: ["main"] | |
| # Build (but don't deploy) pull requests, so dependency bumps are tested before merge | |
| pull_request: | |
| branches: ["main"] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow only one concurrent deployment per ref, skipping runs queued between the run in-progress and latest queued. | |
| # Do NOT cancel in-progress production deployments, but do cancel superseded PR builds. | |
| concurrency: | |
| group: "pages-${{ github.ref }}" | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| # Generous limit so a cold build (empty image cache) can finish and seed the cache; | |
| # warm builds take a few minutes. | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v6 | |
| # eleventy-img names outputs by a hash of the source file contents and sharp | |
| # options, and skips any variant whose output file already exists — so restoring | |
| # previously generated images avoids re-encoding every AVIF/WebP on each run. | |
| - name: Restore generated images | |
| uses: actions/cache@v6 | |
| with: | |
| path: dist/assets/img | |
| key: eleventy-img-${{ hashFiles('src/assets/img/**', 'src/_config/shortcodes/image.js') }} | |
| restore-keys: | | |
| eleventy-img- | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build site | |
| run: npm run build | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: ./dist | |
| deploy: | |
| # Deploy only from the default branch, never from pull request builds | |
| if: github.event_name != 'pull_request' | |
| needs: build | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |