Files
macroplan/.github/workflows/deploy-pages.yml
Julien Calixte 0f08a6cd0a
Some checks failed
Deploy to GitHub Pages / build (push) Failing after 1m35s
Deploy to GitHub Pages / deploy (push) Has been skipped
chore(ci): add GitHub Pages build and deploy workflow
2026-06-19 18:09:23 +02:00

54 lines
1.1 KiB
YAML

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
# Allow the deploy job to publish to Pages via OIDC.
permissions:
contents: read
pages: write
id-token: write
# Only one Pages deployment at a time; cancel superseded runs.
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
# base must match the project-page path: https://<owner>.github.io/macroplan/
- run: pnpm build --base=/macroplan/
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
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