docs.yml 870 B

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