wiki/.gitea/workflows/build-site.yml
root f247d63434
Some checks failed
Build MkDocs / build-and-deploy (push) Failing after 1s
test 1
2025-01-22 21:53:18 +01:00

26 lines
498 B
YAML

name: Build MkDocs
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- name: Clone repository
run: |
git clone --depth 1 --branch master https://git.mcarov.pro/ilyamak04/wiki.git
- name: Build site
run: |
mkdocs build
- name: Deploy site
run: |
cd knowledge-base
rm -rf /var/www/wiki/*
cp -r site/ /var/www/wiki/site/