mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-02 15:28:40 +08:00
Update CI
This commit is contained in:
parent
e993d6e0c6
commit
f69b489aa0
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
@ -64,3 +64,17 @@ jobs:
|
||||
cargo run --bin lfp src
|
||||
- name: Validate references
|
||||
run: bash ci/validate.sh
|
||||
deploy:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test, lint]
|
||||
steps:
|
||||
- name: Deploy to server
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
script: |
|
||||
./tools/rust-deploy/update-cn.sh >/dev/null 2>&1
|
||||
|
Loading…
Reference in New Issue
Block a user