Skip to content

Commit

Permalink
try scp-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Moros1138 committed Sep 4, 2024
1 parent 5a3e443 commit 87ef0a5
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/emscripten-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,12 @@ jobs:
make emscripten
shell: bash

- name: Set up SSH agent
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.REMOTE_SERVER_SSH_KEY }}

- name: Upload files to server
run: |
ls -Al
scp -P ${{ secrets.REMOTE_SERVER_PORT }} -r demo ${{ secrets.REMOTE_SERVER_USER }}@${{ secrets.REMOTE_SERVER_ADDR }}:${{ secrets.REMOTE_SERVER_DIRECTORY }}/
env:
SSH_KNOWN_HOSTS: ${{ secrets.REMOTE_SERVER_ADDR }}



- name: copy file via ssh password
uses: appleboy/[email protected]
with:
host: ${{ secrets.REMOTE_SERVER_ADDR }}
username: ${{ secrets.REMOTE_SERVER_USER }}
key: ${{ secrets.REMOTE_SERVER_SSH_KEY }}
port: ${{ secrets.REMOTE_SERVER_PORT }}
source: "demo/*.html,demo/*.js,demo/*.wasm,demo/*.data"
target: ${{ secrets.REMOTE_SERVER_DIRECTORY }}

0 comments on commit 87ef0a5

Please sign in to comment.