Skip to content

Add support for preparing static HTML files in PDF-only mode during b… #16

Add support for preparing static HTML files in PDF-only mode during b…

Add support for preparing static HTML files in PDF-only mode during b… #16

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Nécessaire pour build-all-branches
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build all branches
run: npm run build:all-branches
env:
NODE_ENV: production
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist/web
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4