diff --git a/.github/workflows/emscripten-build.yml b/.github/workflows/emscripten-build.yml index 1d56b8f..276435a 100644 --- a/.github/workflows/emscripten-build.yml +++ b/.github/workflows/emscripten-build.yml @@ -40,17 +40,12 @@ jobs: make emscripten shell: bash - - name: Set up SSH agent - uses: webfactory/ssh-agent@v0.9.0 - 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/scp-action@v0.1.7 + 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 }}