Skip to content

docs: narrow runtime PAT to report repository only (fine-grained PATs… #21

docs: narrow runtime PAT to report repository only (fine-grained PATs…

docs: narrow runtime PAT to report repository only (fine-grained PATs… #21

Workflow file for this run

name: Preview Site
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run build
- name: Generate preview site
run: bash scripts/generate-preview.sh
env:
BASE_URL: https://deariary.github.io/github-weekly-reporter
- uses: actions/upload-pages-artifact@v3
with:
path: preview-site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- id: deploy
uses: actions/deploy-pages@v4