From 9cecd2ca8053e704e05596d54084a90fbe5fb844 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 1 May 2024 14:58:23 +0200 Subject: [PATCH] Fix --- .woodpecker.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8c948b1179..77fefaaafd 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -15,17 +15,16 @@ steps: - git config --global user.email "daniil@daniil.it" - git config --global user.name "Daniil Gentili" - git remote add o git@github.com:danog/MadelineProtoDocs.git - - git fetch o gh-pages - cd docs - gojekyll clean - gojekyll build - rm -rf /tmp/_site - cp -a _site /tmp/ - cd .. - - git fetch o gh-pages + - git branch -D gh-pages || true + - git switch --orphan gh-pages - git checkout gh-pages - - rm -rf * - cp -a /tmp/_site/* . - git add -A - git commit -am 'Update' - - git push o gh-pages + - git push -f o gh-pages