27 lines
506 B
YAML
27 lines
506 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: |
|
|
cd wiki
|
|
mkdocs build
|
|
|
|
- name: Deploy site
|
|
run: |
|
|
cd wiki
|
|
rm -rf /var/www/wiki/*
|
|
cp -r site/ /var/www/wiki/site/
|
|
|