Skip to content

Commit

Permalink
Update deploy-wasm-emscripten.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm4 committed Oct 7, 2024
1 parent f331d52 commit 5157cda
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/deploy-wasm-emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,29 @@ jobs:
- name: Build
run: cmake --build ${{ github.workspace }}/build --target app-demo -j $(nproc)

- name: Upload
working-directory: ${{ github.workspace }}/build
- name: Create Zip Folder
run: |
sshpass -p "${{ secrets.EMSCRIPTEN_DEPLOY_PASSWORD }}" sftp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "${{ secrets.EMSCRIPTEN_DEPLOY_REMOTE }}" << EOF
put app-demo.html public/www/app-demo.html
put app-demo.js public/www/app-demo.js
put app-demo.wasm public/www/app-demo.wasm
put app-demo.worker.js public/www/app-demo.worker.js
put app-demo.ww.js public/www/app-demo.ww.js
EOF
mkdir emscripten_build
working-directory: ${{ github.workspace }}/build
cp app-demo.html ../emscripten_build
cp app-demo.js ../emscripten_build
cp app-demo.wasm ../emscripten_build
cp app-demo.worker.js ../emscripten_build
cp app-demo.ww.js ../emscripten_build
- name: Archive emscripten_build
uses: actions/upload-artifact@v3
with:
name: emscripten_build
path: ${{ github.workspace }}/emscripten_build

# - name: Upload
# working-directory: ${{ github.workspace }}/build
# run: |
# sshpass -p "${{ secrets.EMSCRIPTEN_DEPLOY_PASSWORD }}" sftp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "${{ secrets.EMSCRIPTEN_DEPLOY_REMOTE }}" << EOF
# put app-demo.html public/www/app-demo.html
# put app-demo.js public/www/app-demo.js
# put app-demo.wasm public/www/app-demo.wasm
# put app-demo.worker.js public/www/app-demo.worker.js
# put app-demo.ww.js public/www/app-demo.ww.js
# EOF

0 comments on commit 5157cda

Please sign in to comment.