chore(seo): refresh sitemap lastmod after the footer and page changes #308
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: pages-build-site | |
| on: | |
| # The editor now lives at https://edit.chaxus.com (Cloudflare Pages). | |
| # GitHub Pages publishes ONLY a client-side redirector (redirect/), so old | |
| # ranuts.github.io/document/* links keep working (path + query preserved). | |
| # The app now deploys to Cloudflare Pages from `main`, so GitHub Pages is | |
| # main-based too: any push to main republishes the redirector. workflow_dispatch | |
| # lets you trigger the first redirector deploy by hand once Cloudflare is live. | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Publish redirector | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| # No build: just ship the static redirector (redirect/index.html + 404.html). | |
| - name: Upload redirector artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: "./redirect" | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| 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 |