gh-pages.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Simple workflow for deploying static content to GitHub Pages
  2. name: Deploy static content to Pages
  3. on:
  4. # Runs on pushes targeting the default branch
  5. push:
  6. branches: ["dev"]
  7. # Allows you to run this workflow manually from the Actions tab
  8. workflow_dispatch:
  9. # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
  10. permissions:
  11. contents: read
  12. pages: write
  13. id-token: write
  14. # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
  15. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
  16. concurrency:
  17. group: "pages"
  18. cancel-in-progress: false
  19. jobs:
  20. # Single deploy job since we're just deploying
  21. deploy:
  22. environment:
  23. name: github-pages
  24. url: ${{ steps.deployment.outputs.page_url }}
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: Checkout
  28. uses: actions/checkout@v4
  29. with:
  30. submodules: true
  31. fetch-depth: 1
  32. - name: Copy README.md into place
  33. run: |
  34. rm -f ./website/README.md
  35. cp ./README.md ./website/README.md
  36. - name: Setup Pages
  37. uses: actions/configure-pages@v3
  38. - name: Build with Jekyll
  39. uses: actions/jekyll-build-pages@v1
  40. with:
  41. source: ./website
  42. destination: ./_site
  43. - name: Upload artifact
  44. uses: actions/upload-pages-artifact@v2
  45. # - name: Checkout
  46. # uses: actions/checkout@v4
  47. # - name: Setup Pages
  48. # uses: actions/configure-pages@v5
  49. # - name: Upload artifact
  50. # uses: actions/upload-pages-artifact@v3
  51. # with:
  52. # # Upload entire repository
  53. # path: './website'
  54. - name: Deploy to GitHub Pages
  55. id: deployment
  56. uses: actions/deploy-pages@v4