From 5157cdaf9a27612e63f8ce94e5c26b54a14885e7 Mon Sep 17 00:00:00 2001 From: Marcus Hudritsch Date: Mon, 7 Oct 2024 16:16:02 +0200 Subject: [PATCH] Update deploy-wasm-emscripten.yml --- .github/workflows/deploy-wasm-emscripten.yml | 34 ++++++++++++++------ 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-wasm-emscripten.yml b/.github/workflows/deploy-wasm-emscripten.yml index 84153a5d..aa23a06c 100644 --- a/.github/workflows/deploy-wasm-emscripten.yml +++ b/.github/workflows/deploy-wasm-emscripten.yml @@ -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