Skip to content

Commit 3c88b7e

Browse files
authored
1.1 Release
2 parents ad49c56 + 4b3b5ae commit 3c88b7e

File tree

7 files changed

+6490
-321
lines changed

7 files changed

+6490
-321
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Wait for a Cloudflare Pages build to finish so you can do actions like purge cac
1111
apiKey: ${{ secrets.CF_API_KEY }}
1212
accountId: '4e599df4216133509abaac54b109a647'
1313
project: 'example-pages-project'
14+
# Add this if you want GitHub Deployments (see below)
15+
githubToken: ${{ secrets.GITHUB_TOKEN }}
1416
```
1517
1618
### Example
@@ -30,6 +32,8 @@ jobs:
3032
apiKey: ${{ secrets.CF_API_KEY }}
3133
accountId: '4e599df4216133509abaac54b109a647'
3234
project: 'test'
35+
# Add this if you want GitHub Deployments (see below)
36+
githubToken: ${{ secrets.GITHUB_TOKEN }}
3337
- run: |
3438
curl -X \
3539
-H "X-Auth-Email: ${{ secrets.CF_ACCOUNT_EMAIL }}" \
@@ -44,4 +48,19 @@ jobs:
4448
* `environment` - Envrionment for this deployment, either `production` or `preview`
4549
* `url` - URL for this deployment
4650
* `alias` - Alias URL (Will be the branch URL such as `fix-issue.project.pages.dev` or be the deployment URL)
47-
* `success` - If the deployment was successful
51+
* `success` - If the deployment was successful
52+
53+
## GitHub Deployments
54+
GitHub Deployments will show if the deployment was successful or failed right inside GitHub! You can easily see the status, view the website (exact deployment) and see the logs.
55+
56+
> **Note**: You need to add the `githubToken` input in order for deployments to work!
57+
58+
### Overview
59+
![Successful production deployment](https://user-images.githubusercontent.com/8492901/149387681-25ec860d-0c8e-4075-8ab0-4d289b86127b.png)
60+
61+
### Pull Requests
62+
**In Progress**
63+
![In progress deployment in PR](https://user-images.githubusercontent.com/8492901/149388796-6bbd4ae9-b7b3-4d06-80c5-c18b3737f51f.png)
64+
65+
**Successful**
66+
![Successful deployment in PR](https://user-images.githubusercontent.com/8492901/149388892-14a7ea25-6865-4d52-b403-30e8cec449d2.png)

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ inputs:
1414
project:
1515
description: 'Pages project name'
1616
required: true
17+
githubToken:
18+
description: 'GitHub Token to use for deployments (GITHUB_TOKEN secret or your own token!) - OPTIONAL (Only used for GitHub Deployments)'
19+
required: false
1720
outputs:
1821
id:
1922
description: 'Deployment ID'

0 commit comments

Comments
 (0)