static/.gitea/workflows/pages.yml
xeovalyte 868cd3da51
Some checks failed
Continuous Integration / build (push) Failing after 24s
Update .gitea/workflows/pages.yml
2024-01-19 13:06:32 +01:00

38 lines
1020 B
YAML

name: Continuous Integration
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: Continuous Integration update docs
CI_COMMIT_AUTHOR: Continuous Integration
steps:
- uses: actions/checkout@v3
- run: apt update -y
- run: apt install python3 python3-pip -y
- run: pip3 install mkdocs-material
- run: mkdocs build
# 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 }}"
- run: |
git clone -b pages https://gitea.xeovalyte.dev/xeovalyte/static.git
- run: |
rm static/* -r
cp site/* static/ -r
- run: |
cd static/
git add .
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
- run: curl https://docs.xeovalyte.dev/update/static