From 925e78a8c23b64937e29cd42b16eed87cdce789f Mon Sep 17 00:00:00 2001 From: Patrick Schurig Date: Tue, 2 Jun 2026 11:13:45 +0200 Subject: [PATCH] ci: supprime defaults working-dir, cd explicite dans chaque step --- .gitea/workflows/docs.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/docs.yml b/.gitea/workflows/docs.yml index ff2bae1..ab7c2ac 100644 --- a/.gitea/workflows/docs.yml +++ b/.gitea/workflows/docs.yml @@ -11,16 +11,9 @@ jobs: build-deploy: runs-on: ubuntu-latest - defaults: - run: - working-directory: /root/_work/powersync-docs - steps: - name: Checkout - working-directory: /root run: | - echo "GITHUB_WORKSPACE=${GITHUB_WORKSPACE}" - echo "PWD=$(pwd)" mkdir -p /root/_work/powersync-docs cd /root/_work/powersync-docs git init @@ -31,13 +24,16 @@ jobs: git checkout FETCH_HEAD - name: Install dependencies - run: python3 -m pip install --break-system-packages -q -r requirements.txt + run: | + cd /root/_work/powersync-docs + python3 -m pip install --break-system-packages -q -r requirements.txt # ── Récupération des JSON depuis les 5 repos drivers ───────────────── - name: Fetch plugin JSON files env: GITEA_TOKEN: ${{ secrets.MKDOCS_TOKEN }} run: | + cd /root/_work/powersync-docs GITEA_BASE="https://git.etm-powersync.fr" AUTH_BASE="https://pakutz79:${GITEA_TOKEN}@git.etm-powersync.fr" mkdir -p .plugins-src @@ -62,6 +58,7 @@ jobs: # ── Génération de la doc ────────────────────────────────────────────── - name: Generate device reference + SUMMARY.md run: | + cd /root/_work/powersync-docs python3 scripts/gen_device_reference.py \ --src .plugins-src \ --docs docs \ @@ -69,11 +66,14 @@ jobs: # ── Build MkDocs ────────────────────────────────────────────────────── - name: MkDocs build --strict - run: mkdocs build --strict + run: | + cd /root/_work/powersync-docs + mkdocs build --strict # ── Vérification idempotence ────────────────────────────────────────── - name: Check generated content is up-to-date run: | + cd /root/_work/powersync-docs python3 scripts/gen_device_reference.py \ --src .plugins-src \ --docs docs \ @@ -98,6 +98,7 @@ jobs: DEPLOY_HOST: ${{ secrets.DOCS_DEPLOY_HOST }} DEPLOY_PATH: ${{ secrets.DOCS_DEPLOY_PATH }} run: | + cd /root/_work/powersync-docs rsync -az --delete \ -e "ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=yes" \ site/ \