We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe7c403 commit 349c3aeCopy full SHA for 349c3ae
1 file changed
.github/workflows/main.yml
@@ -20,11 +20,8 @@ jobs:
20
run: npm install
21
- name: Build web
22
run: npm run build
23
- - name: Install SSH keys
24
- run: |
25
- install -m 600 -D /dev/null ~/.ssh/id_rsa
26
- echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
27
- ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
+ - name: Trust host
+ run: ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
28
- name: Deploy to server
29
run: scp -P ${{ secrets.SSH_PORT }} -p ${{ secrets.SSH_PASS }} -r dist ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.WORK_DIR }}/
30
- name: Cleanup
0 commit comments