Update deploy-docs.yml

This commit is contained in:
Whale 2021-03-02 14:26:02 +08:00 committed by GitHub
parent 455fc79818
commit 275a7bf00b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ jobs:
with:
python-version: 3.x
key: ${{ secrets.VPS_SSH }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- run: pip install mkdocs-material
- run: mkdocs build -d distribute && cd distribute/ && ssh root@139.199.77.130 rm -rf /var/www/docs_v2/\* && scp -r ./* root@139.199.77.130:/var/www/docs_v2/