ci: supprime defaults working-dir, cd explicite dans chaque step
Some checks failed
Build & Deploy docs / build-deploy (push) Failing after 0s
Some checks failed
Build & Deploy docs / build-deploy (push) Failing after 0s
This commit is contained in:
parent
3f83cc49de
commit
925e78a8c2
@ -11,16 +11,9 @@ jobs:
|
|||||||
build-deploy:
|
build-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: /root/_work/powersync-docs
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
working-directory: /root
|
|
||||||
run: |
|
run: |
|
||||||
echo "GITHUB_WORKSPACE=${GITHUB_WORKSPACE}"
|
|
||||||
echo "PWD=$(pwd)"
|
|
||||||
mkdir -p /root/_work/powersync-docs
|
mkdir -p /root/_work/powersync-docs
|
||||||
cd /root/_work/powersync-docs
|
cd /root/_work/powersync-docs
|
||||||
git init
|
git init
|
||||||
@ -31,13 +24,16 @@ jobs:
|
|||||||
git checkout FETCH_HEAD
|
git checkout FETCH_HEAD
|
||||||
|
|
||||||
- name: Install dependencies
|
- 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 ─────────────────
|
# ── Récupération des JSON depuis les 5 repos drivers ─────────────────
|
||||||
- name: Fetch plugin JSON files
|
- name: Fetch plugin JSON files
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.MKDOCS_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.MKDOCS_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
cd /root/_work/powersync-docs
|
||||||
GITEA_BASE="https://git.etm-powersync.fr"
|
GITEA_BASE="https://git.etm-powersync.fr"
|
||||||
AUTH_BASE="https://pakutz79:${GITEA_TOKEN}@git.etm-powersync.fr"
|
AUTH_BASE="https://pakutz79:${GITEA_TOKEN}@git.etm-powersync.fr"
|
||||||
mkdir -p .plugins-src
|
mkdir -p .plugins-src
|
||||||
@ -62,6 +58,7 @@ jobs:
|
|||||||
# ── Génération de la doc ──────────────────────────────────────────────
|
# ── Génération de la doc ──────────────────────────────────────────────
|
||||||
- name: Generate device reference + SUMMARY.md
|
- name: Generate device reference + SUMMARY.md
|
||||||
run: |
|
run: |
|
||||||
|
cd /root/_work/powersync-docs
|
||||||
python3 scripts/gen_device_reference.py \
|
python3 scripts/gen_device_reference.py \
|
||||||
--src .plugins-src \
|
--src .plugins-src \
|
||||||
--docs docs \
|
--docs docs \
|
||||||
@ -69,11 +66,14 @@ jobs:
|
|||||||
|
|
||||||
# ── Build MkDocs ──────────────────────────────────────────────────────
|
# ── Build MkDocs ──────────────────────────────────────────────────────
|
||||||
- name: MkDocs build --strict
|
- name: MkDocs build --strict
|
||||||
run: mkdocs build --strict
|
run: |
|
||||||
|
cd /root/_work/powersync-docs
|
||||||
|
mkdocs build --strict
|
||||||
|
|
||||||
# ── Vérification idempotence ──────────────────────────────────────────
|
# ── Vérification idempotence ──────────────────────────────────────────
|
||||||
- name: Check generated content is up-to-date
|
- name: Check generated content is up-to-date
|
||||||
run: |
|
run: |
|
||||||
|
cd /root/_work/powersync-docs
|
||||||
python3 scripts/gen_device_reference.py \
|
python3 scripts/gen_device_reference.py \
|
||||||
--src .plugins-src \
|
--src .plugins-src \
|
||||||
--docs docs \
|
--docs docs \
|
||||||
@ -98,6 +98,7 @@ jobs:
|
|||||||
DEPLOY_HOST: ${{ secrets.DOCS_DEPLOY_HOST }}
|
DEPLOY_HOST: ${{ secrets.DOCS_DEPLOY_HOST }}
|
||||||
DEPLOY_PATH: ${{ secrets.DOCS_DEPLOY_PATH }}
|
DEPLOY_PATH: ${{ secrets.DOCS_DEPLOY_PATH }}
|
||||||
run: |
|
run: |
|
||||||
|
cd /root/_work/powersync-docs
|
||||||
rsync -az --delete \
|
rsync -az --delete \
|
||||||
-e "ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=yes" \
|
-e "ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=yes" \
|
||||||
site/ \
|
site/ \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user