Update deploy-demo.yml #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |