diff --git a/.gitea/workflows/pages.yml b/.gitea/workflows/pages.yml index fb1b74c..d57ef29 100644 --- a/.gitea/workflows/pages.yml +++ b/.gitea/workflows/pages.yml @@ -24,12 +24,12 @@ jobs: git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" git config --global user.email "me+ci@xeovalyte.dev" - run: | - mkdir pages - cp -r site/* pages/ + git submodule init + rm pages/* + cp site/* pages/* - run: | - git add pages/ + cd pages/ + git add . git commit -m "${{ env.CI_COMMIT_MESSAGE }}" - git pull - - run: git push origin --delete pages - - run: git subtree push --prefix pages origin pages + git push - run: curl https://docs.xeovalyte.dev/update/static