docs.yml 825 B

1234567891011121314151617181920212223242526272829303132
  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. - uses: Swatinem/rust-cache@v2
  18. with:
  19. cache-all-crates: "true"
  20. save-if: ${{ github.ref == 'refs/heads/master' }}
  21. - uses: ilammy/setup-nasm@v1
  22. - name: cargo doc
  23. run: cargo doc --no-deps --workspace --all-features
  24. - name: Deploy
  25. uses: JamesIves/github-pages-deploy-action@v4.5.0
  26. with:
  27. branch: gh-pages-docs
  28. folder: target/doc