Skip to content

Commit 2cb0f5b

Browse files
committed
set ssh push
1 parent c1c2754 commit 2cb0f5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020
chmod 700 .ssh
2121
ls -al
2222
echo "${{ secrets.RSA }}" > .ssh/id_rsa
23+
chmod 600 .ssh/id_rsa
2324
echo "View Contents:"
2425
cat .ssh/id_rsa
2526
- name: Upload Files
2627
run: |
27-
scp -i .ssh/id_rsa -r dist/* liubin@$HOST:/home/web/www
28+
scp -o StrictHostKeyChecking=no -i .ssh/id_rsa -r dist/* liubin@$HOST:/home/web/www

0 commit comments

Comments
 (0)