diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 875f740..4f290ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,15 +40,15 @@ jobs: run: find dist -name "*.wasm" -exec wasm-opt {} -o {} -Oz -c --dae --dce --rse -s 4 --vacuum \; - name: Setup GitHub Pages - # if: github.event_name == 'push' + if: github.event_name == 'push' uses: actions/configure-pages@v3 - name: Upload Pages artifact - # if: github.event_name == 'push' + if: github.event_name == 'push' uses: actions/upload-pages-artifact@v2 with: path: dist - name: Deploy to GitHub Pages - # if: github.event_name == 'push' + if: github.event_name == 'push' uses: actions/deploy-pages@v2 diff --git a/README.md b/README.md index b5c3dc2..f49f6e1 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,11 @@ 0. Install Rust using [rustup](https://rustup.rs/). -1. Add WASM target: +1. Install Rust nightly toolchain and Wasm target: ``` +rustup toolchain install nightly +rustup default nightly rustup target add wasm32-unknown-unknown ```