deploy-doc.yml 769 B

123456789101112131415161718192021222324252627282930
  1. name: Deploy doc to gh-pages
  2. on:
  3. push:
  4. branches: [ main ]
  5. jobs:
  6. deploy-doc:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Checkout 🛎️
  10. uses: actions/[email protected]
  11. - name: Setup Cargo 🚚
  12. run: |
  13. curl https://sh.rustup.rs -sSf | sh -s -- -y
  14. export PATH="$HOME/.cargo/bin:$PATH"
  15. rustup toolchain install nightly
  16. rustup default nightly
  17. rustup target add wasm32-wasi
  18. - name: Build 🔧
  19. run: |
  20. RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly rustdoc -p wasmedge_wasi_socket --target wasm32-wasi --lib
  21. - name: Deploy 🚀
  22. uses: JamesIves/[email protected]
  23. with:
  24. branch: gh-pages
  25. folder: target/wasm32-wasi/doc