Deploy to GitHub Pages #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to GitHub Pages | |
| on: | |
| release: | |
| types: [ 'published' ] | |
| # allows running this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: read # required for git checkout | |
| pages: write # to deploy to GitHub Pages | |
| id-token: write # to verify the deployment originates from an appropriate source | |
| actions: write # required to write a job summary | |
| jobs: | |
| ci: | |
| name: π CI | |
| uses: ./.github/workflows/ci.yaml | |
| permissions: | |
| contents: read | |
| actions: write # required to write a job summary | |
| # Deploys Pages artifact to GitHub Pages. | |
| deploy-pages-artifact: | |
| name: Deploy Pages Artifact to GitHub Pages | |
| needs: ci | |
| # Deploy to github-pages environment | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: 'ubuntu-24.04' | |
| steps: | |
| # Deploy the artifact from the 'ci' job | |
| - name: π Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| - name: π Generate deployment summary | |
| run: | | |
| echo "### π Deployment Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "Website deployed to: ${{ steps.deployment.outputs.page_url }}" >> $GITHUB_STEP_SUMMARY |