From 700072c723c42aa29cc682ad29417628bac266b1 Mon Sep 17 00:00:00 2001 From: Konstantin Lukas Date: Sat, 31 Aug 2024 14:35:03 +0200 Subject: [PATCH] update doc action --- .github/workflows/documetation.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/documetation.yml b/.github/workflows/documetation.yml index 9fcc682..ff07565 100644 --- a/.github/workflows/documetation.yml +++ b/.github/workflows/documetation.yml @@ -33,9 +33,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - git fetch origin + git fetch --all git checkout -B documentation - cp -R docs/* . - git add . + git reset --hard origin/main + find . -not -name '.git' -not -name 'docs' -delete + mv -r docs/* . + rmdir docs + git add --all git commit -m "Deploy TypeDoc documentation for tag ${{ github.ref_name }}" git push origin documentation --force