docs.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Deploy Nightly Docs
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. deploy:
  8. name: Build & Deploy
  9. runs-on: ubuntu-latest
  10. permissions:
  11. contents: write
  12. steps:
  13. - uses: actions/checkout@v4
  14. - run: sudo apt-get update
  15. - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev
  16. - uses: dtolnay/rust-toolchain@nightly
  17. with:
  18. toolchain: nightly-2024-02-01
  19. - uses: Swatinem/rust-cache@v2
  20. with:
  21. cache-all-crates: "true"
  22. save-if: ${{ github.ref == 'refs/heads/master' }}
  23. - uses: ilammy/setup-nasm@v1
  24. - name: cargo doc
  25. run: cargo doc --no-deps --workspace --all-features
  26. - name: Deploy
  27. uses: JamesIves/github-pages-deploy-action@v4.5.0
  28. with:
  29. branch: gh-pages
  30. folder: target/doc
  31. target-folder: api-docs/nightly
  32. repository-name: dioxuslabs/docsite
  33. clean: false
  34. token: ${{ secrets.DEPLOY_KEY }}