diff --git a/Hugo/hugo.yml b/Hugo/hugo.yml index 41fcf11..e5267e3 100644 --- a/Hugo/hugo.yml +++ b/Hugo/hugo.yml @@ -37,15 +37,18 @@ pipeline: # Git configuration - 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 /tmp/$CI_REPO_NAME/ + - git clone -b pages https://$CODEBERG_TOKEN@codeberg.org/$CI_REPO.git $CI_REPO_NAME # Copy build step output to repository folder - - cp -ar $HUGO_OUTPUT/. /tmp/$CI_REPO_NAME/ + - cp -ar $HUGO_OUTPUT/. $CI_REPO_NAME/ # Needed for custom domains - - cp .domains $HUGO_OUTPUT/ || true # Ignore if it doesn't exist + - cp .domains $CI_REPO_NAME || true # Ignore if it doesn't exist # Commit and push all static files with pipeline started timestamp - - cd /tmp/$CI_REPO_NAME/ + - cd $CI_REPO_NAME - git add . - - git commit -m "Woodpecker CI ${CI_BUILD_CREATED} [CI SKIP]" + - git commit -m "Woodpecker CI ${CI_BUILD_CREATED}" - git push when: event: push + +branches: + exclude: [ pages ] \ No newline at end of file