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