From 1b09a034b399b9c26e702b4734b94a2c7a894cb0 Mon Sep 17 00:00:00 2001 From: daudix-UFO Date: Mon, 25 Dec 2023 04:18:16 +0300 Subject: [PATCH] chore: Make CI remove old build before pushing new one --- .woodpecker.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3946fbb..0bae235 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -31,8 +31,13 @@ steps: - git config --global user.email $MAIL - git config --global user.name "Woodpecker CI" - git clone -b pages https://$CODEBERG_TOKEN@codeberg.org/$CI_REPO.git $CI_REPO_NAME + # Remove old files from repository + - ls # Debug + - git -C $CI_REPO_NAME rm -r * + - ls # Debug # Copy build step output to repository folder - cp -ar $ZOLA_OUTPUT/. $CI_REPO_NAME/ + - ls # Debug # Commit and push all static files with pipeline started timestamp - cd $CI_REPO_NAME - git add .