Skip to content

Commit 87ef0a5

Browse files
committed
try scp-action
1 parent 5a3e443 commit 87ef0a5

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/emscripten-build.yml

+9-14
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,12 @@ jobs:
4040
make emscripten
4141
shell: bash
4242

43-
- name: Set up SSH agent
44-
uses: webfactory/[email protected]
45-
with:
46-
ssh-private-key: ${{ secrets.REMOTE_SERVER_SSH_KEY }}
47-
48-
- name: Upload files to server
49-
run: |
50-
ls -Al
51-
scp -P ${{ secrets.REMOTE_SERVER_PORT }} -r demo ${{ secrets.REMOTE_SERVER_USER }}@${{ secrets.REMOTE_SERVER_ADDR }}:${{ secrets.REMOTE_SERVER_DIRECTORY }}/
52-
env:
53-
SSH_KNOWN_HOSTS: ${{ secrets.REMOTE_SERVER_ADDR }}
54-
55-
56-
43+
- name: copy file via ssh password
44+
uses: appleboy/[email protected]
45+
with:
46+
host: ${{ secrets.REMOTE_SERVER_ADDR }}
47+
username: ${{ secrets.REMOTE_SERVER_USER }}
48+
key: ${{ secrets.REMOTE_SERVER_SSH_KEY }}
49+
port: ${{ secrets.REMOTE_SERVER_PORT }}
50+
source: "demo/*.html,demo/*.js,demo/*.wasm,demo/*.data"
51+
target: ${{ secrets.REMOTE_SERVER_DIRECTORY }}

0 commit comments

Comments
 (0)