Skip to content

Update documentation to reflect the latest changes to the configuration #13

Update documentation to reflect the latest changes to the configuration

Update documentation to reflect the latest changes to the configuration #13

Workflow file for this run

name: Deploy MkDocs Site
on:
push:
branches:
- main # Change 'main' to your default branch if different
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: 3.x # Use the appropriate version for your setup
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs
- name: Build MkDocs site
run: mkdocs build --clean -f docs/mkdocs.yml
- name: Setup SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.NS1_SSH_DEPLOY_KEY }}
- name: Deploy to server
run: |
rsync -e "ssh -o StrictHostKeyChecking=no" -avz --delete docs/site/ ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}:/srv/rusty-buddy-doc/
env:
SSH_KNOWN_HOSTS: ${{ secrets.SSH_HOST }}