Skip to content

Commit 46ba238

Browse files
committed
debug workflow
1 parent 8c1e4f3 commit 46ba238

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-docs.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ jobs:
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

0 commit comments

Comments
 (0)