1 parent a9c2323 commit ab0cb47Copy full SHA for ab0cb47
1 file changed
.github/workflows/build_and_publish.yml
@@ -46,23 +46,3 @@ jobs:
46
run: gh release upload "${{ github.event.release.tag_name }}" "build.zip" --clobber
47
env:
48
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49
-
50
- # Set up SSH KEY
51
- - name: Set up SSH key
52
- run: |
53
- mkdir -p ~/.ssh
54
- echo "${{ secrets.SSH_KEY }}" > ~/.ssh/ssh_key
55
- chmod 600 ~/.ssh/ssh_key
56
57
- # Add the server to known hosts to avoid prompt
58
- - name: Add server to known_hosts
59
60
- ssh-keyscan -H "${{ secrets.SSH_HOST }}" >> ~/.ssh/known_hosts
61
62
- # SSH into the server and run commands
63
- - name: SSH and Execute Script
64
- env:
65
- SERVER_USER: ${{ secrets.SSH_USERNAME }}
66
- SERVER_HOST: ${{ secrets.SSH_HOST }}
67
68
- scp -i ~/.ssh/ssh_key -o StrictHostKeyChecking=no build.zip $SERVER_USER@$SERVER_HOST:~/latest_build.zip
0 commit comments