cargo upgrade
#40
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 Snek! | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Deploy Snek! | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v2 | |
- name: Set up a Node.js environment | |
uses: actions/setup-node@v2 | |
with: | |
cache: npm | |
node-version: 16 | |
- name: Install Node.js dependencies | |
run: npm install | |
- name: Set up a Rust environment | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
target: wasm32-unknown-unknown | |
profile: minimal | |
override: true | |
# Note that we don't cache the Rust side of things, | |
# because we use a nightly toolchain anyway. | |
- name: Build | |
run: npm run build | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: dist |