Skip to content

docoment part of the undocumented #19

docoment part of the undocumented

docoment part of the undocumented #19

Workflow file for this run

name: Deploy
on:
push:
branches: main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ^3.12.2
cache: pip
- run: |
set -euo pipefail
pip install -r requirements.txt
mkdocs build -s
mkdir ~/.ssh
echo '${{ secrets.KEY }}' > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
rsync -aze 'ssh -o StrictHostKeyChecking=no' --delete --force site/ ${{ secrets.USER }}@${{ secrets.HOST }}:${{ secrets.DEST }}