diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index d2dd2310..8d932635 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml @@ -37,3 +37,18 @@ jobs: with: name: emscripten path: bin + deploy: + runs-on: ubuntu-latest + needs: build + if: github.ref == 'refs/heads/master' + steps: + - uses: actions/download-artifact@v4 + - uses: wlixcc/SFTP-Deploy-Action@v1.2.4 + with: + username: ${{ secrets.USERNAME }} + server: ${{ secrets.SERVER }} + port: ${{ secrets.PORT }} + ssh_private_key: ${{ secrets.PRIVATE_KEY }} + local_path: './emscripten/*' + remote_path: ${{ secrets.REMOTE_PATH }} + sftp_only: true \ No newline at end of file