1
0

docs stable.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: docs stable
  2. on:
  3. workflow_dispatch:
  4. jobs:
  5. build-deploy:
  6. runs-on: ubuntu-latest
  7. environment: docs
  8. steps:
  9. # NOTE: Comment out when https://github.com/rust-lang/mdBook/pull/1306 is merged and released
  10. # - name: Setup mdBook
  11. # uses: peaceiris/actions-mdbook@v1
  12. # with:
  13. # mdbook-version: "0.4.10"
  14. # NOTE: Delete when the previous one is enabled
  15. - name: Setup mdBook
  16. run: |
  17. cargo install mdbook --git https://github.com/Demonthos/mdBook.git --branch master
  18. - uses: actions/checkout@v3
  19. - name: Build
  20. run: cd docs &&
  21. cd guide && mdbook build -d ../nightly/guide && cd .. &&
  22. cd router && mdbook build -d ../nightly/router && cd .. &&
  23. cd reference && mdbook build -d ../nightly/reference && cd ..
  24. cd fermi && mdbook build -d ../nightly/fermi && cd ..
  25. - name: Deploy 🚀
  26. uses: JamesIves/github-pages-deploy-action@v4.4.1
  27. with:
  28. branch: gh-pages # The branch the action should deploy to.
  29. folder: docs/nightly # The folder the action should deploy.
  30. target-folder: docs
  31. repository-name: dioxuslabs/docsite
  32. clean: false
  33. token: ${{ secrets.DEPLOY_KEY }} # let's pretend I don't need it for now