Add docs gitea workflow
Some checks failed
Build documentation / build-and-deploy (push) Failing after 1m11s
Some checks failed
Build documentation / build-and-deploy (push) Failing after 1m11s
This commit is contained in:
42
.gitea/workflows/docs.yaml
Normal file
42
.gitea/workflows/docs.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: Build documentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install doxygen and make
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y doxygen make
|
||||||
|
|
||||||
|
- name: Set up python3
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
|
||||||
|
- name: Install mkdocs
|
||||||
|
run: |
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install mkdocs mkdocs-material
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: make docs
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
env:
|
||||||
|
SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
REMOTE_IP: ${{ vars.DEPLOY_REMOTE_IP }}
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "$SSH_KEY" > ~/.ssh/id_rsa
|
||||||
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
ssh-keyscan -H 10.10.10.200 >> ~/.ssh/known_hosts
|
||||||
|
rsync -az --delete site/ webuser@"$REMOTE_IP":/home/webuser/mop/
|
||||||
Reference in New Issue
Block a user