Skip to content

Commit 46cf744

Browse files
authored
Swap react for preact (#3)
* Swap react for preact * Revert "Swap react for preact" This reverts commit 2b66dff. * Remove bad deployment to prod from PRs
1 parent 0d4cc6e commit 46cf744

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
push:
66
branches:
77
- main
8-
pull_request:
9-
branches:
10-
- main
118

129
jobs:
1310
deploy:
@@ -47,37 +44,4 @@ jobs:
4744
apiToken: ${{ secrets.PAGES_API_TOKEN }}
4845
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
4946
command: deploy
50-
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
51-
52-
- name: Find Comment
53-
if: github.event_name == 'pull_request'
54-
uses: peter-evans/find-comment@v3
55-
id: fc
56-
with:
57-
issue-number: ${{ github.event.pull_request.number }}
58-
comment-author: 'github-actions[bot]'
59-
body-includes: Cloudflare Pages
60-
61-
- name: Update PR with Preview URL
62-
if: success() && github.event_name == 'pull_request'
63-
uses: peter-evans/create-or-update-comment@v4
64-
with:
65-
comment-id: ${{ steps.fc.outputs.comment-id }}
66-
issue-number: ${{ github.event.pull_request.number }}
67-
token: ${{ secrets.GITHUB_TOKEN }}
68-
body: |
69-
⚡️ **Cloudflare Pages Preview**
70-
Preview URL: ${{ steps.deploy.outputs.url }}
71-
edit-mode: "replace"
72-
73-
- name: Update PR with Failure
74-
if: failure() && github.event_name == 'pull_request'
75-
uses: peter-evans/create-or-update-comment@v4
76-
with:
77-
comment-id: ${{ steps.fc.outputs.comment-id }}
78-
issue-number: ${{ github.event.pull_request.number }}
79-
token: ${{ secrets.GITHUB_TOKEN }}
80-
body: |
81-
😢 **Cloudflare Pages - Deployment failed**
82-
Please check the workflow logs for details.
83-
edit-mode: "replace"
47+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)