chore: Make CI remove old build before pushing new one

This commit is contained in:
daudix-UFO
2023-12-25 04:18:16 +03:00
parent 8bdd8d97a5
commit 1b09a034b3

View File

@ -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 .