name: Deploy MkDocs on: push: branches: - main # or master, depending on your default branch jobs: deploy: runs-on: ubuntu-20.04 container: node:18 steps: - uses: actions/checkout@v4 - name: Install mkdocs and rsync run: | apt update apt install -y mkdocs mkdocs-bootstrap mkdocs-nature mkdocs-material mkdocs-autorefs rsync - name: Install SSH key uses: https://github.com/shimataro/ssh-key-action@v2 with: key: ${{ secrets.SSH_PRIVATE_KEY }} known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }} - name: Build site run: mkdocs build - name: Sync run: rsync -avz site/ berker@192.168.1.196:/home/berker/nginxproxymanager/data/site - uses: actions/upload-artifact@v3 with: name: many-artifacts path: site/