Skip to content

Commit bc2085e

Browse files
committed
ci: add cloudflare-pages environment to deploy-cloudflare job
1 parent a57aa92 commit bc2085e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,24 @@ jobs:
4444
deploy-cloudflare:
4545
needs: build
4646
runs-on: ubuntu-latest
47+
environment:
48+
name: cloudflare-pages
49+
url: ${{ steps.deploy.outputs.deployment-url }}
4750
steps:
4851
- name: Download dist artifact
4952
uses: actions/download-artifact@v8
5053
with:
5154
name: dist
5255
path: dist/
56+
5357
- name: Deploy to Cloudflare Pages
5458
id: deploy
5559
uses: cloudflare/wrangler-action@v3
5660
with:
5761
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
5862
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
5963
command: pages deploy dist --project-name=chinmina
64+
6065
- name: Add deployment summary
6166
run: |
6267
echo "### Cloudflare Pages Deployment" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)