Skip to content

feat(chat, wish): allow multiple directory specifications #28

feat(chat, wish): allow multiple directory specifications

feat(chat, wish): allow multiple directory specifications #28

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/ssh-agent@v0.7.0
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 }}