| 1 | name: Deploy Pages |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | push: |
| 6 | branches: [main] |
| 7 | paths: ['.github/workflows/pages.yml'] |
| 8 | |
| 9 | permissions: |
| 10 | contents: read |
| 11 | pages: write |
| 12 | id-token: write |
| 13 | |
| 14 | concurrency: |
| 15 | group: pages |
| 16 | cancel-in-progress: false |
| 17 | |
| 18 | jobs: |
| 19 | deploy: |
| 20 | environment: |
| 21 | name: github-pages |
| 22 | url: ${{ steps.deployment.outputs.page_url }} |
| 23 | runs-on: ubuntu-latest |
| 24 | steps: |
| 25 | - name: Check out the gh-pages site content |
| 26 | uses: actions/checkout@v4 |
| 27 | with: |
| 28 | ref: gh-pages |
| 29 | - name: Strip non-site files from the artifact |
| 30 | run: rm -rf .git .github |
| 31 | - uses: actions/configure-pages@v5 |
| 32 | - uses: actions/upload-pages-artifact@v3 |
| 33 | with: |
| 34 | path: '.' |
| 35 | - id: deployment |
| 36 | uses: actions/deploy-pages@v4 |