Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
SeokminHong committed Nov 29, 2023
1 parent 63cc136 commit 805ff6f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This action request Cloudflare Pages to build the main branch and poll the respo
- `projectName` (required): Name of the Pages project.
- `token` (required): Authorization token of Cloudflare.
- `interval` (optional): Interval (ms) for polling. Default is `3000`.
- `branch` (optional): Name of a branch to deploy. If it isn't provided, the production branch will be chosen.

## Usage

Expand All @@ -39,13 +40,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Deploy pages
uses: SeokminHong/pages-action@v0.5
uses: SeokminHong/pages-action@v0.6
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: {{ page_name }}
token: ${{ secrets.CLOUDFLARE_TOKEN }}
branch: dev
```
## Limitations
Cloudflare v4 API only provides to deploy default branch, `main`. So, you can't use other deployments like pull request previews, development branches, and others. I'll add an option to deploy using the deploy hooks to deploy other branches, but it still has limits to deploying pull request previews.

0 comments on commit 805ff6f

Please sign in to comment.