Update .gitea/workflows/pages.yml
All checks were successful
Continuous Integration / build (push) Successful in 27s

This commit is contained in:
xeovalyte 2024-01-19 13:27:08 +01:00
parent 868cd3da51
commit bc8f509887

View File

@ -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