Skip to content

Merge pull request #7 from labyrinth30/feat/purple-terms-consent #27

Merge pull request #7 from labyrinth30/feat/purple-terms-consent

Merge pull request #7 from labyrinth30/feat/purple-terms-consent #27

Workflow file for this run

name: Verify and deploy portfolio
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- run: sudo apt-get update && sudo apt-get install -y fonts-noto-cjk
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npx puppeteer browsers install chrome
- run: npm run check
- run: npm run build
- run: npm run export:pdf
- run: npm run test:e2e
- uses: actions/upload-pages-artifact@v3
if: github.event_name != 'pull_request'
with:
path: dist
deploy:
if: github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment