jekyll-gh-pages.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Workflow for building and deploying a Jekyll site to GitHub Pages
  2. name: Deploy Jekyll with GitHub Pages dependencies preinstalled
  3. on:
  4. # Runs on pushes targeting the default branch
  5. push:
  6. branches: ["edge"]
  7. paths:
  8. - 'docs/**'
  9. # Allows you to run this workflow manually from the Actions tab
  10. workflow_dispatch:
  11. permissions: {}
  12. # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
  13. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
  14. concurrency:
  15. group: "pages"
  16. cancel-in-progress: false
  17. jobs:
  18. # Build job
  19. build:
  20. name: build
  21. runs-on: ubuntu-latest
  22. permissions:
  23. contents: read
  24. pages: write # For preparing the page deployment
  25. steps:
  26. - name: Checkout
  27. uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
  28. with:
  29. persist-credentials: false
  30. - name: Setup Ruby
  31. uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b
  32. with:
  33. ruby-version: '3.4.9'
  34. bundler-cache: true # runs 'bundle install' and caches installed gems automatically
  35. cache-version: 1 # Increment this number if you need to re-download cached gems
  36. working-directory: docs
  37. - name: Setup Pages
  38. uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
  39. - name: Build with Jekyll
  40. run: |
  41. cd docs
  42. bundle exec jekyll build --destination ../_site
  43. - name: Upload artifact
  44. uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
  45. # Deployment job
  46. deploy:
  47. name: deploy
  48. environment:
  49. name: github-pages
  50. url: ${{ steps.deployment.outputs.page_url }}
  51. runs-on: ubuntu-latest
  52. permissions:
  53. pages: write # For deploying the page
  54. id-token: write # For authorizing the deployment
  55. needs: build
  56. steps:
  57. - name: Deploy to GitHub Pages
  58. id: deployment
  59. uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0