name: Build and Deploy MkDocs on: push: branches: - main jobs: deploy-docs: runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install MkDocs & Plugins run: | python -m pip install --upgrade pip pip install mkdocs mkdocs-material - name: Build Static Site run: mkdocs build - name: Deploy to Web Server via SSH uses: https://git.weseng.de with: host: ${{ secrets.WEB_HOST }} username: ${{ secrets.WEB_USER }} key: ${{ secrets.WEB_KEY }} source: "site/*" target: "/var/www/git-pages/" strip_components: 1 # Removes the "site/" folder layer so content dumps directly into your web root