Skip to content

docs: 修复《学长组 Q&A 总结》关于班主任的错误 #30

docs: 修复《学长组 Q&A 总结》关于班主任的错误

docs: 修复《学长组 Q&A 总结》关于班主任的错误 #30

Workflow file for this run

name: deploy
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install -r requirements.txt
- run: mkdocs build
- uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
source: "site/*"
target: ${{ secrets.SCP_TARGET }}
strip_components: 1