jekyll-gh-pages.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. # 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. # Build job
  21. build:
  22. runs-on: ubuntu-latest
  23. steps:
  24. - name: Checkout
  25. uses: actions/checkout@v4
  26. - name: Setup Pages
  27. uses: actions/configure-pages@v5
  28. - name: Build with Jekyll
  29. uses: actions/jekyll-build-pages@v1
  30. with:
  31. source: ./docs/
  32. destination: ./_site
  33. - name: Upload artifact
  34. uses: actions/upload-pages-artifact@v3
  35. # Deployment job
  36. deploy:
  37. environment:
  38. name: github-pages
  39. url: ${{ steps.deployment.outputs.page_url }}
  40. runs-on: ubuntu-latest
  41. needs: build
  42. steps:
  43. - name: Deploy to GitHub Pages
  44. id: deployment
  45. uses: actions/deploy-pages@v4