Skip to content

Commit

Permalink
1.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
WalshyDev authored Jan 13, 2022
2 parents ad49c56 + 4b3b5ae commit 3c88b7e
Show file tree
Hide file tree
Showing 7 changed files with 6,490 additions and 321 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Wait for a Cloudflare Pages build to finish so you can do actions like purge cac
apiKey: ${{ secrets.CF_API_KEY }}
accountId: '4e599df4216133509abaac54b109a647'
project: 'example-pages-project'
# Add this if you want GitHub Deployments (see below)
githubToken: ${{ secrets.GITHUB_TOKEN }}
```
### Example
Expand All @@ -30,6 +32,8 @@ jobs:
apiKey: ${{ secrets.CF_API_KEY }}
accountId: '4e599df4216133509abaac54b109a647'
project: 'test'
# Add this if you want GitHub Deployments (see below)
githubToken: ${{ secrets.GITHUB_TOKEN }}
- run: |
curl -X \
-H "X-Auth-Email: ${{ secrets.CF_ACCOUNT_EMAIL }}" \
Expand All @@ -44,4 +48,19 @@ jobs:
* `environment` - Envrionment for this deployment, either `production` or `preview`
* `url` - URL for this deployment
* `alias` - Alias URL (Will be the branch URL such as `fix-issue.project.pages.dev` or be the deployment URL)
* `success` - If the deployment was successful
* `success` - If the deployment was successful

## GitHub Deployments
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.

> **Note**: You need to add the `githubToken` input in order for deployments to work!

### Overview
![Successful production deployment](https://user-images.githubusercontent.com/8492901/149387681-25ec860d-0c8e-4075-8ab0-4d289b86127b.png)

### Pull Requests
**In Progress**
![In progress deployment in PR](https://user-images.githubusercontent.com/8492901/149388796-6bbd4ae9-b7b3-4d06-80c5-c18b3737f51f.png)

**Successful**
![Successful deployment in PR](https://user-images.githubusercontent.com/8492901/149388892-14a7ea25-6865-4d52-b403-30e8cec449d2.png)
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ inputs:
project:
description: 'Pages project name'
required: true
githubToken:
description: 'GitHub Token to use for deployments (GITHUB_TOKEN secret or your own token!) - OPTIONAL (Only used for GitHub Deployments)'
required: false
outputs:
id:
description: 'Deployment ID'
Expand Down
Loading

0 comments on commit 3c88b7e

Please sign in to comment.