jekyll-gh-pages.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64
  30. with:
  31. ruby-version: '3.2.3' # Not needed with a .ruby-version file
  32. bundler-cache: true # runs 'bundle install' and caches installed gems automatically
  33. cache-version: 0 # Increment this number if you need to re-download cached gems
  34. working-directory: docs
  35. - name: Setup Pages
  36. uses: actions/configure-pages@v5
  37. - name: Build with Jekyll
  38. run: |
  39. cd docs
  40. bundle exec jekyll build --destination ../_site
  41. - name: Upload artifact
  42. uses: actions/upload-pages-artifact@v4
  43. # Deployment job
  44. deploy:
  45. environment:
  46. name: github-pages
  47. url: ${{ steps.deployment.outputs.page_url }}
  48. runs-on: ubuntu-latest
  49. needs: build
  50. steps:
  51. - name: Deploy to GitHub Pages
  52. id: deployment
  53. uses: actions/deploy-pages@v5