| 1 | name: Deploy static content to 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: false |
| 13 | jobs: |
| 14 | deploy: |
| 15 | environment: |
| 16 | name: github-pages |
| 17 | url: ${{ steps.deployment.outputs.page_url }} |
| 18 | runs-on: ubuntu-latest |
| 19 | steps: |
| 20 | - name: Checkout |
| 21 | uses: actions/checkout@v4 |
| 22 | - name: Setup Pages |
| 23 | uses: actions/configure-pages@v5 |
| 24 | - name: Upload artifact |
| 25 | uses: actions/upload-pages-artifact@v3 |
| 26 | with: |
| 27 | path: '.' |
| 28 | - name: Deploy to GitHub Pages |
| 29 | id: deployment |
| 30 | uses: actions/deploy-pages@v4 |