Merge pull request #86 from robinst/bump-gh-pages-action #72
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: gh-pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
demo: | |
name: wasm demo | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: demo | |
steps: | |
- uses: actions/checkout@v4 | |
# Waiting for new wasm-bindgen release to run with newer rust: | |
# https://github.com/rustwasm/wasm-bindgen/issues/4211 | |
- uses: dtolnay/[email protected] | |
- run: yarn | |
- run: yarn build | |
- name: Deploy to gh-pages | |
uses: JamesIves/[email protected] | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
branch: gh-pages | |
folder: demo/dist | |
clean: true |