1
0

pages.yml 875 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: GitHub Pages
  2. on:
  3. push:
  4. branches: ["main"]
  5. workflow_dispatch:
  6. permissions:
  7. contents: read
  8. pages: write
  9. id-token: write
  10. concurrency:
  11. group: "pages"
  12. cancel-in-progress: true
  13. jobs:
  14. build:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Checkout
  18. uses: actions/checkout@v4
  19. - name: Setup Pages
  20. uses: actions/configure-pages@v5
  21. - name: Build with Jekyll
  22. uses: actions/jekyll-build-pages@v1
  23. with:
  24. source: ./.github/workflows/site
  25. destination: ./_site
  26. - name: Upload artifact
  27. uses: actions/upload-pages-artifact@v3
  28. deploy:
  29. environment:
  30. name: github-pages
  31. url: ${{ steps.deployment.outputs.page_url }}
  32. runs-on: ubuntu-latest
  33. needs: build
  34. steps:
  35. - name: Deploy to GitHub Pages
  36. id: deployment
  37. uses: actions/deploy-pages@v4