Migrate blog from quarto to soupault #17
Workflow file for this run
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 CloudFlare Pages | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| deployments: write | |
| pull-requests: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: jdx/mise-action@v3 | |
| - name: Build the site | |
| run: mise run build | |
| - name: Deploy to CloudFlare Pages | |
| id: deploy | |
| uses: cloudflare/pages-action@v1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| projectName: personal-site | |
| directory: build | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Comment preview URL on PR | |
| if: github.event_name == 'pull_request' | |
| uses: marocchino/sticky-pull-request-comment@v2 | |
| with: | |
| header: cloudflare-preview | |
| message: | | |
| ## ☁️ Cloudflare Pages Deploy | |
| | | | | |
| |---|---| | |
| | **Latest commit:** | `${{ github.event.pull_request.head.sha }}` | | |
| | **Status:** | ✅ Deploy successful! | | |
| | **Preview URL:** | ${{ steps.deploy.outputs.url }} | | |
| | **Branch Preview URL:** | ${{ steps.deploy.outputs.alias }} | |