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: