docs.yml 888 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Docs
  2. on:
  3. push:
  4. branches:
  5. - master
  6. permissions:
  7. contents: write
  8. env:
  9. CARGO_TERM_COLOR: always
  10. DATABASE_URL: "sqlite://./dim_dev.db"
  11. jobs:
  12. build:
  13. name: Build docs
  14. runs-on: ubuntu-latest
  15. steps:
  16. - run: sudo apt-get update
  17. - run: sudo apt-get install -y libva-dev libva-drm2 libva2 sqlite3
  18. - uses: actions/checkout@v2
  19. - uses: actions-rs/toolchain@v1
  20. with:
  21. profile: minimal
  22. toolchain: stable
  23. override: true
  24. components: cargo
  25. - name: Build Docs
  26. uses: actions-rs/cargo@v1
  27. with:
  28. command: doc
  29. args: --verbose --workspace --release --no-deps
  30. - name: Deploy 🚀
  31. uses: JamesIves/github-pages-deploy-action@v4.3.3
  32. with:
  33. branch: docs
  34. folder: target/doc
  35. target-folder: ${{ github.ref_name }}