Create Artwork “20260415-d24-1-torture-san” #32
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: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| deployments: write | |
| pull-requests: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Zola | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: zola@0.22.1 | |
| - name: Build site (production) | |
| if: github.event_name == 'push' | |
| run: zola build | |
| - name: Build site (preview) | |
| if: github.event_name == 'pull_request' | |
| run: zola build --base-url / | |
| - name: Cache wrangler | |
| uses: actions/cache@v4 | |
| with: | |
| path: node_modules | |
| key: wrangler-${{ runner.os }}-3.90.0 | |
| - name: Deploy to Cloudflare Pages | |
| id: deploy | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| wranglerVersion: "3.90.0" | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy public --project-name=artishchow-com | |
| - 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.deployment-url }} | | |
| | **Branch Preview URL:** | ${{ steps.deploy.outputs.deployment-alias-url }} | |