File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 steps :
1212 - name : Test ssh
1313 run : |
14- ssh -o StrictHostKeyChecking=no -i ${{ secrets.DO_SSH_KEY }} ${{ secrets.DO_USER }}@${{ secrets.DO_HOST }} "echo SSH connection successful"
14+ echo ${{ secrets.DO_SSH_KEY }} > id_rsa
15+ chmod 600 id_rsa
16+ ssh -o StrictHostKeyChecking=no -i id_rsa ${{ secrets.DO_USER }}@${{ secrets.DO_HOST }} "echo SSH connection successful"
17+ rm id_rsa
1518 - name : Checkout main branch
1619 uses : actions/checkout@v4
1720 with :
@@ -51,10 +54,13 @@ jobs:
5154 make html
5255 - name : Deploy docs
5356 run : |
57+ echo ${{ secrets.DO_SSH_KEY }} > id_rsa
58+ chmod 600 id_rsa
5459 source $(conda info --base)/etc/profile.d/conda.sh
5560 conda activate nunchaku-docs || { echo "Failed to activate conda env"; exit 1; }
5661 which python
5762 rsync -avz --delete docs/build/html/ ${{ secrets.DO_USER }}@${{ secrets.DO_HOST }}:${{ secrets.DO_DOCS_ROOT }}/nunchaku-nightly
63+ rm id_rsa
5864 env :
5965 RSYNC_RSH : " ssh -o StrictHostKeyChecking=no -i ${{ secrets.DO_SSH_KEY }}"
6066 - name : Clean up
You can’t perform that action at this time.
0 commit comments