File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,28 @@ jobs:
106
106
name : rustpython-release-wasm32-wasip1
107
107
path : target/rustpython-release-wasm32-wasip1.wasm
108
108
109
+ - name : install wasm-pack
110
+ run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
111
+ - uses : actions/setup-node@v4
112
+ - uses : mwilliamson/setup-wabt-action@v3
113
+ with : { wabt-version: "1.0.30" }
114
+ - name : build notebook demo
115
+ if : github.ref == 'refs/heads/release'
116
+ run : |
117
+ npm install
118
+ npm run dist
119
+ mv dist ../demo/dist/notebook
120
+ env :
121
+ NODE_OPTIONS : " --openssl-legacy-provider"
122
+ working-directory : ./wasm/notebook
123
+ - name : Deploy demo to Github Pages
124
+ uses : peaceiris/actions-gh-pages@v4
125
+ env :
126
+ ACTIONS_DEPLOY_KEY : ${{ secrets.ACTIONS_DEMO_DEPLOY_KEY }}
127
+ PUBLISH_DIR : ./wasm/demo/dist
128
+ EXTERNAL_REPOSITORY : RustPython/demo
129
+ PUBLISH_BRANCH : master
130
+
109
131
release :
110
132
runs-on : ubuntu-latest
111
133
needs : [build, build-wasm]
You can’t perform that action at this time.
0 commit comments