Skip to content

Commit b5a1783

Browse files
committed
Add upload steps to CI
1 parent 980aac6 commit b5a1783

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/wasm.yml

+24
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,27 @@ jobs:
7979
cd examples/BasicMinimalC++/src
8080
qmake BasicMinimalC++.pro -spec wasm-emscripten
8181
make -j
82+
83+
- name: Copy the built WASM to the build/wasm folder
84+
run: |
85+
mkdir -p ../build/wasm
86+
cp *.wasm ../build/wasm
87+
cp *.html ../build/wasm
88+
cp *.js ../build/wasm
89+
cp *.svg ../build/wasm
90+
91+
- name: Upload the zipped wasm folder
92+
uses: actions/upload-artifact@v4
93+
with:
94+
name: wasm
95+
path: examples/BasicMinimalC++/build/wasm
96+
compression-level: 0 # no compression
97+
if-no-files-found: error
98+
99+
- name: Push the built wasm to the webapp branch
100+
uses: s0/git-publish-subdir-action@develop
101+
env:
102+
GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}
103+
REPO: self
104+
BRANCH: webapp
105+
FOLDER: examples/BasicMinimalC++/build/wasm

0 commit comments

Comments
 (0)