Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit defcada

Browse files
arihant2mathcoolreader18
authored andcommitted
publish demo on weekly release
1 parent 40e3f49 commit defcada

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,28 @@ jobs:
106106
name: rustpython-release-wasm32-wasip1
107107
path: target/rustpython-release-wasm32-wasip1.wasm
108108

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+
109131
release:
110132
runs-on: ubuntu-latest
111133
needs: [build, build-wasm]

0 commit comments

Comments
 (0)