From 4aaa52781848131095bbdffc1ebf7648937cf43c Mon Sep 17 00:00:00 2001 From: John Mackey <109514137+Sunday-Crunk@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:07:10 +0100 Subject: [PATCH] Update mkdocsDeploy.yml --- .github/workflows/mkdocsDeploy.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mkdocsDeploy.yml b/.github/workflows/mkdocsDeploy.yml index 8b868a4..d2d68e5 100644 --- a/.github/workflows/mkdocsDeploy.yml +++ b/.github/workflows/mkdocsDeploy.yml @@ -24,11 +24,12 @@ jobs: - name: Custom Deploy to GitHub Pages run: | mkdocs build --clean + cd site + git init git config user.name "GitHub Actions" git config user.email "actions@github.com" - git fetch --depth=1 origin gh-pages - git checkout -B gh-pages - git add -f site/* + git add . git commit -m 'Deploy MkDocs Site' - git push -u origin gh-pages --force + git push -f https://github.com/penwern/curate-documentation.git master:gh-pages +