Skip to content

Commit feec47e

Browse files
committed
add comment
1 parent 3592318 commit feec47e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,23 @@ jobs:
3232
- name: Build
3333
run: yarn build
3434
- name: Deploy
35+
id: deploy
3536
uses: cloudflare/wrangler-action@v3
3637
with:
3738
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3839
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3940
command: pages deploy out --project-name=rescript-lang-org
4041
# Optional: Enable this if you want to have GitHub Deployments triggered
4142
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
43+
continue-on-error: true
44+
- name: Comment PR with deployment link
45+
uses: marocchino/sticky-pull-request-comment@v2
46+
with:
47+
recreate: true
48+
message: |
49+
## Deployed ${{ steps.deploy.outputs.pages-deployment-id }} to Cloudflare Pages ${{ steps.deploy.outputs.pages-environment }}
50+
Deployment Status: ${{ steps.deploy.conclusion }}
51+
Deployment Url: ${{ steps.deploy.outputs.deployment-url }}
52+
Deployment Alias Url: ${{ steps.deploy.outputs.pages-deployment-alias-url }}
53+
${{ steps.deploy.outputs.command-output }}
54+
${{ steps.deploy.outputs.command-stderr }}

0 commit comments

Comments
 (0)