Files
2026-11-18 10:12:43 +01:00

53 lines
1.2 KiB
YAML

name: Deploy to GitHub Pages
on:
push:
branches: [master]
# Rebuild daily so README edits and new releases on the project repos show up.
schedule:
- cron: '17 5 * * *'
# Lets a project repo trigger a rebuild right after publishing a release.
repository_dispatch:
types: [project-updated]
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@v5
- uses: actions/setup-node@v5
with:
node-version: 24
cache: npm
- id: pages
uses: actions/configure-pages@v5
- run: npm ci
- run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SITE_URL: ${{ steps.pages.outputs.origin }}
BASE_PATH: ${{ steps.pages.outputs.base_path }}/
- uses: actions/upload-pages-artifact@v4
with:
path: dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4