32 lines
699 B
YAML
32 lines
699 B
YAML
# Push sur main → vérification, build, audit Lighthouse (scores >= 90), déploiement.
|
|
# Runner : gitea-runner en mode host sur le VPS1 (label vps1), voir vps1-quadlets.
|
|
name: Portfolio
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-deploy:
|
|
runs-on: vps1
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Dépendances
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Vérification
|
|
run: pnpm check
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
|
|
- name: Lighthouse (scores >= 90)
|
|
run: pnpm lighthouse
|
|
|
|
- name: Déploiement
|
|
run: |
|
|
test -f dist/index.html
|
|
rsync -a --delete dist/ /deploy/portfolio/
|