From bc8f5098879190c8219be478d20af6056b04bac4 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Fri, 19 Jan 2024 13:27:08 +0100 Subject: [PATCH] Update .gitea/workflows/pages.yml --- .gitea/workflows/pages.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/pages.yml b/.gitea/workflows/pages.yml index 2b1b84d..f894f75 100644 --- a/.gitea/workflows/pages.yml +++ b/.gitea/workflows/pages.yml @@ -12,26 +12,29 @@ jobs: CI_COMMIT_AUTHOR: Continuous Integration steps: - uses: actions/checkout@v3 + with: + path: ./static + - uses: actions/checkout@v3 + with: + ref: pages + path: ./pages - run: apt update -y - run: apt install python3 python3-pip -y - run: pip3 install mkdocs-material - run: mkdocs build + working-directory: ./static - # Commit and push all changed files. - run: | - git config --global user.name "xeovalyte" - git config --global user.email "me+gitea@xeovalyte.dev" - git config --global user.password "${{ secrets.PASSWORD }}" + git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" + git config --global user.email "me+ci@xeovalyte.dev" - run: | - git clone -b pages https://gitea.xeovalyte.dev/xeovalyte/static.git + rm pages/* -r + cp static/site/* pages/ -r - run: | - rm static/* -r - cp site/* static/ -r - - run: | - cd static/ git add . git commit -m "${{ env.CI_COMMIT_MESSAGE }}" git push + working-directory: ./pages - run: curl https://docs.xeovalyte.dev/update/static