File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 46
46
run : gh release upload "${{ github.event.release.tag_name }}" "build.zip" --clobber
47
47
env :
48
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
- run : |
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
- run : |
68
- scp -i ~/.ssh/ssh_key -o StrictHostKeyChecking=no build.zip $SERVER_USER@$SERVER_HOST:~/latest_build.zip
You can’t perform that action at this time.
0 commit comments