From 53cf77ff5bafda1bb4ef81faff92c7af1a9de207 Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 20 Oct 2026 20:52:02 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20build,=20audit=20Lighthouse=20et=20d?= =?UTF-8?q?=C3=A9ploiement=20via=20Gitea=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..f1ac5bb --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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/