Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit f0a1cd5

Browse files
authored
Release 1.5.0 (#86)
1 parent 2df29b9 commit f0a1cd5

4 files changed

Lines changed: 27 additions & 4 deletions

File tree

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ GitHub Action for creating Cloudflare Pages deployments, using the new [Direct U
3333
directory: YOUR_ASSET_DIRECTORY
3434
# Optional: Enable this if you want to have GitHub Deployments triggered
3535
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
36+
# Optional: Switch what branch you are publishing to.
37+
# By default this will be the branch which triggered this workflow
38+
branch: main
39+
# Optional: Change the working directory
40+
workingDirectory: my-site
41+
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
42+
wranglerVersion: '3'
3643
```
3744

3845
1. Replace `YOUR_ACCOUNT_ID`, `YOUR_PROJECT_NAME` and `YOUR_ASSET_DIRECTORY` with the appropriate values to your Pages project.
@@ -69,6 +76,22 @@ manually by adding the argument `branch: YOUR_BRANCH_NAME`.
6976

7077
By default Wrangler will run in the root package directory. If your app lives in a monorepo and you want to run Wrangler from its directory, add `workingDirectory: YOUR_PACKAGE_DIRECTORY`.
7178

79+
### Wrangler v3
80+
81+
You can use the newly released [Wrangler v3](https://blog.cloudflare.com/wrangler3/) with the `wranglerVersion` property.
82+
83+
```yaml
84+
- name: Publish to Cloudflare Pages
85+
uses: cloudflare/pages-action@v1
86+
with:
87+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
88+
accountId: YOUR_ACCOUNT_ID
89+
projectName: YOUR_PROJECT_NAME
90+
directory: YOUR_ASSET_DIRECTORY
91+
# Enable Wrangler v3
92+
wranglerVersion: '3'
93+
```
94+
7295
## Outputs
7396
7497
| Name | Description |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ inputs:
2828
wranglerVersion:
2929
description: "The version of Wrangler to use"
3030
required: false
31-
default: 2
31+
default: "2"
3232
runs:
3333
using: "node16"
3434
main: "index.js"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pages-action",
3-
"version": "1.3.0",
3+
"version": "1.5.0",
44
"description": "Publish to Cloudflare Pages",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)