[CI] fix install wasmedge #42
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 doc to gh-pages | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy-doc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
- name: Setup Cargo 🚚 | |
run: | | |
curl https://sh.rustup.rs -sSf | sh -s -- -y | |
export PATH="$HOME/.cargo/bin:$PATH" | |
rustup toolchain install nightly | |
rustup default nightly | |
rustup target add wasm32-wasi | |
- name: Build 🔧 | |
run: | | |
RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly rustdoc -p wasmedge_wasi_socket --target wasm32-wasi --lib | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: target/wasm32-wasi/doc |