docs.yml 998 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: github pages
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - docs
  8. jobs:
  9. build-deploy:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Setup mdBook
  14. uses: peaceiris/actions-mdbook@v1
  15. with:
  16. mdbook-version: "0.4.10"
  17. - name: Build
  18. run: cd docs &&
  19. cd guide && mdbook build -d ../docs/nightly/guide && cd .. &&
  20. cd reference && mdbook build -d ../docs/nightly/reference && cd .. &&
  21. cd router && mdbook build -d ../docs/nightly/router && cd ..
  22. - name: Deploy 🚀
  23. uses: JamesIves/github-pages-deploy-action@v4.2.3
  24. with:
  25. branch: gh-pages # The branch the action should deploy to.
  26. folder: docs/nightly # The folder the action should deploy.
  27. target-folder: docs/nightly
  28. repository-name: dioxuslabs/docsite
  29. clean: false
  30. # token: ${{ secrets.DEPLOY_KEY }} # let's pretend I don't need it for now