Merge pull request #13 from hg8496/dependabot/cargo/termimad-0.31.1 #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 mkdocs-material "mkdocs-material[imaging]" | |
- 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 }} |