static.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Simple workflow for deploying static content to GitHub Pages
  2. name: Deploy static content to Pages
  3. on:
  4. # Runs on pushes targeting the default branch
  5. push:
  6. branches: ["main"]
  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. # Single deploy job since we're just deploying
  21. deploy:
  22. environment:
  23. name: github-pages
  24. url: ${{ steps.deployment.outputs.page_url }}
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: Checkout
  28. uses: actions/checkout@v4
  29. - name: Setup Pages
  30. uses: actions/configure-pages@v5
  31. - name: Upload artifact
  32. uses: actions/upload-pages-artifact@v3
  33. with:
  34. # Upload entire repository
  35. path: '.'
  36. - name: Deploy to GitHub Pages
  37. id: deployment
  38. uses: actions/deploy-pages@v4