mirror of
https://github.com/redstrate/Physis.git
synced 2025-05-18 16:07:46 +00:00
Add CI for updating docs
This commit is contained in:
parent
0fbb604c73
commit
ded1778ee4
1 changed files with 10 additions and 0 deletions
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
@ -49,6 +49,16 @@ jobs:
|
|||
run: cargo test --features visual_data,game_install --verbose
|
||||
- name: Run clippy
|
||||
run: cargo clippy --features visual_data,game_install
|
||||
- name: Set up SSH key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
- name: Update Docs
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
cargo doc --release --no-deps
|
||||
rsync -e "ssh -p 38901 -o StrictHostKeyChecking=no" --recursive target/doc/ deploy@ryne.moe:/srv/http/physis-docs
|
||||
- name: Run deny-check
|
||||
run: |
|
||||
cargo deny check
|
||||
|
|
Loading…
Add table
Reference in a new issue