chore: Make CI remove old build before pushing new one
This commit is contained in:
@ -31,8 +31,13 @@ steps:
|
|||||||
- git config --global user.email $MAIL
|
- git config --global user.email $MAIL
|
||||||
- git config --global user.name "Woodpecker CI"
|
- git config --global user.name "Woodpecker CI"
|
||||||
- git clone -b pages https://$CODEBERG_TOKEN@codeberg.org/$CI_REPO.git $CI_REPO_NAME
|
- 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
|
# Copy build step output to repository folder
|
||||||
- cp -ar $ZOLA_OUTPUT/. $CI_REPO_NAME/
|
- cp -ar $ZOLA_OUTPUT/. $CI_REPO_NAME/
|
||||||
|
- ls # Debug
|
||||||
# Commit and push all static files with pipeline started timestamp
|
# Commit and push all static files with pipeline started timestamp
|
||||||
- cd $CI_REPO_NAME
|
- cd $CI_REPO_NAME
|
||||||
- git add .
|
- git add .
|
||||||
|
Reference in New Issue
Block a user