123456789101112131415161718192021222324252627282930 |
- 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
|