Skip to content

Commit 349c3ae

Browse files
committed
maybe??
1 parent fe7c403 commit 349c3ae

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ jobs:
2020
run: npm install
2121
- name: Build web
2222
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
23+
- name: Trust host
24+
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
2825
- name: Deploy to server
2926
run: scp -P ${{ secrets.SSH_PORT }} -p ${{ secrets.SSH_PASS }} -r dist ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.WORK_DIR }}/
3027
- name: Cleanup

0 commit comments

Comments
 (0)