docs stable.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. - name: Deploy 🚀
  24. uses: JamesIves/github-pages-deploy-action@v4.4.1
  25. with:
  26. branch: gh-pages # The branch the action should deploy to.
  27. folder: docs/nightly # The folder the action should deploy.
  28. target-folder: docs
  29. repository-name: dioxuslabs/docsite
  30. clean: false
  31. token: ${{ secrets.DEPLOY_KEY }} # let's pretend I don't need it for now