ci: supprime defaults working-dir, cd explicite dans chaque step
Some checks failed
Build & Deploy docs / build-deploy (push) Failing after 0s

This commit is contained in:
Patrick Schurig 2026-06-02 11:13:45 +02:00
parent 3f83cc49de
commit 925e78a8c2

View File

@ -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/ \