From 5123480d8d1bde906ab90afa117c2e4e7f8855a5 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Thu, 18 Jan 2024 14:57:23 +0100 Subject: [PATCH] Update .gitea/workflows/pages.yml --- .gitea/workflows/pages.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/pages.yml b/.gitea/workflows/pages.yml index e5913c7..836c85b 100644 --- a/.gitea/workflows/pages.yml +++ b/.gitea/workflows/pages.yml @@ -20,14 +20,15 @@ jobs: - run: mkdocs build # Commit and push all changed files. - - name: GIT Commit Build Artifacts (coverage, dist, devdist, docs) - run: | + - run: | git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" git config --global user.email "username@users.noreply.github.com" - git subtree add --prefix=pages origin/pages - git subtree pull --prefix=pages origin pages + - run: git subtree add --prefix=pages origin/pages + - run: git subtree pull --prefix=pages origin pages + - run: | rm -rf pages/* cp -r site/* pages/ + - run: | git add pages/ git commit -m "${{ env.CI_COMMIT_MESSAGE }}" - git subtree push --prefix pages origin pages + - run: git subtree push --prefix pages origin pages