Skip to content

fix: update build errors #31

fix: update build errors

fix: update build errors #31

Workflow file for this run

name: Build & Deploy MkDocs to OVH
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install MkDocs and plugins
run: |
pip install mkdocs mkdocs-material plantuml-markdown
- name: Build MkDocs Product Documentation
run: |
mkdocs --config-file mkdocs-product.yml build --site-dir site-product
- name: Build MkDocs System Documentation
run: |
mkdocs --config-file mkdocs-system.yml build --site-dir site-system
- name: Deploy Product Documentation to OVH
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.OVH_HOST }}
username: ${{ secrets.OVH_USER }}
password: ${{ secrets.OVH_PASSWORD }}
port: 22
source: "site-product/*"
target: "/var/www/dhanman-docs-site"
strip_components: 1
timeout: 30s
command_timeout: 10m
debug: false
- name: Deploy System Documentation to OVH
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.OVH_HOST }}
username: ${{ secrets.OVH_USER }}
password: ${{ secrets.OVH_PASSWORD }}
port: 22
source: "site-system/*"
target: "/var/www/dhanman-tech-docs-site"
strip_components: 1
timeout: 30s
command_timeout: 10m
debug: false