diff --git a/.woodpecker.yml b/.woodpecker.yml index 2aaffef..5487c97 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -15,10 +15,9 @@ steps: - git config --global user.email "ci@polynom.me" - git config --global user.name "polynom.me CI system" - git config --global --add safe.directory $CI_WORKSPACE/$CI_REPO_OWNER/$CI_REPO_NAME/deploy - - git clone -b pages $CI_REPO_CLONE_URL deploy - - cd deploy + - git init -b pages public + - cd public - git remote set-url origin https://$GIT_PUSH_TOKEN@git.polynom.me/$CI_REPO_OWNER/$CI_REPO_NAME.git - - cp -rf ../public/* . - git add --all - git commit -m "Deploy new version $CI_COMMIT_SHA" - - git push -u origin pages \ No newline at end of file + - git push -u origin -f pages \ No newline at end of file