Add post with CR on-time stats #9
This file contains 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 to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: "9.2.0" | |
- run: pnpm install | |
- run: pnpm check | |
build: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: "9.2.0" | |
- name: Persist Eleventy .cache | |
uses: actions/cache@v4 | |
with: | |
path: ./.cache | |
key: ${{ runner.os }}-eleventy-fetch-cache | |
- name: Install dependencies and build | |
run: | | |
pnpm install | |
pnpm build | |
- uses: actions/upload-pages-artifact@v3 | |
if: github.ref == 'refs/heads/main' | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/deploy-pages@v4 | |
if: github.ref == 'refs/heads/main' | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} |