Skip to content

Update deploy-demo.yml #5

Update deploy-demo.yml

Update deploy-demo.yml #5

Workflow file for this run

name: Deploy Pages Demo
on:
push:
branches: [main, master, v2-branch]
pull_request:
branches: [main, master, v2-branch]
release:
types: [published]
workflow_dispatch:
jobs:
demo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build
run: wasm-pack build --target web --no-default-features --features wasm
- name: Deploy
run: cp -r pkg demo/pkg
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: demo