From c8d65ccb926b875b36ed141ac2304bb75911fad9 Mon Sep 17 00:00:00 2001 From: Louis Lacoste Date: Wed, 9 Apr 2025 21:14:35 +0200 Subject: [PATCH] Fix CI ? --- .woodpecker.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index ec9a566..4b1ed87 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -21,13 +21,12 @@ steps: deploy-site: image: alpine/git commands: - - cd /woodpecker/src/git.polarolouis.fr/polarolouis/site-perso/public - - git init - - git config --global init.defaultBranch main - - git config user.name "CI Bot" - - git config user.email "ci@example.com" - - git remote add origin "$DEPOT_PAGES" - - git add . + - cd /woodpecker/src/git.polarolouis.fr/polarolouis/ + - git clone "$DEPOT_PAGES" + - rm -Rf "$DEPOT_PAGES/*" + - cp -r site-perso/* "$DEPOT_PAGES/" + - cd "$DEPOT_PAGES" + - git config user.name "Woodpecker CI" - git commit -m "Deploy site" - git push -f origin main environment: