ci: build, audit Lighthouse et déploiement via Gitea Actions
Portfolio / build-deploy (push) Successful in 2m0s

This commit is contained in:
Lucas committed 2026-10-20 20:52:02 +02:00
1 parent 77a3a9d178
commit 53cf77ff5b
1 file changed
+31
+31
View File
@@ -0,0 +1,31 @@
# 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/