jekyll-gh-pages.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
  12. permissions:
  13. contents: read
  14. pages: write
  15. id-token: write
  16. # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
  17. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
  18. concurrency:
  19. group: "pages"
  20. cancel-in-progress: false
  21. jobs:
  22. # Build job
  23. build:
  24. runs-on: ubuntu-latest
  25. steps:
  26. - name: Checkout
  27. uses: actions/checkout@v6
  28. - name: Setup Ruby
  29. # https://github.com/ruby/setup-ruby/releases/tag/v1.268.0
  30. uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71
  31. with:
  32. ruby-version: '3.2.3' # Not needed with a .ruby-version file
  33. bundler-cache: true # runs 'bundle install' and caches installed gems automatically
  34. cache-version: 0 # Increment this number if you need to re-download cached gems
  35. working-directory: docs
  36. - name: Setup Pages
  37. uses: actions/configure-pages@v5
  38. - name: Build with Jekyll
  39. run: |
  40. cd docs
  41. bundle exec jekyll build --destination ../_site
  42. - name: Upload artifact
  43. uses: actions/upload-pages-artifact@v4
  44. # Deployment job
  45. deploy:
  46. environment:
  47. name: github-pages
  48. url: ${{ steps.deployment.outputs.page_url }}
  49. runs-on: ubuntu-latest
  50. needs: build
  51. steps:
  52. - name: Deploy to GitHub Pages
  53. id: deployment
  54. uses: actions/deploy-pages@v4