Skip to content

Commit ab0cb47

Browse files
committed
Build Action
1 parent a9c2323 commit ab0cb47

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,3 @@ jobs:
4646
run: gh release upload "${{ github.event.release.tag_name }}" "build.zip" --clobber
4747
env:
4848
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

0 commit comments

Comments
 (0)