Release 1.5.0 (#86)

This commit is contained in:
Daniel Walsh 2023-05-23 18:37:23 +01:00 committed by GitHub
parent 2df29b9c10
commit f0a1cd58cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 4 deletions

View file

@ -33,6 +33,13 @@ GitHub Action for creating Cloudflare Pages deployments, using the new [Direct U
directory: YOUR_ASSET_DIRECTORY
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# Optional: Switch what branch you are publishing to.
# By default this will be the branch which triggered this workflow
branch: main
# Optional: Change the working directory
workingDirectory: my-site
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
wranglerVersion: '3'
```
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`.
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`.
### Wrangler v3
You can use the newly released [Wrangler v3](https://blog.cloudflare.com/wrangler3/) with the `wranglerVersion` property.
```yaml
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: YOUR_ACCOUNT_ID
projectName: YOUR_PROJECT_NAME
directory: YOUR_ASSET_DIRECTORY
# Enable Wrangler v3
wranglerVersion: '3'
```
## Outputs
| Name | Description |

View file

@ -28,7 +28,7 @@ inputs:
wranglerVersion:
description: "The version of Wrangler to use"
required: false
default: 2
default: "2"
runs:
using: "node16"
main: "index.js"

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "pages-action",
"version": "1.3.0",
"version": "1.5.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "pages-action",
"version": "1.3.0",
"version": "1.5.0",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",

View file

@ -1,6 +1,6 @@
{
"name": "pages-action",
"version": "1.3.0",
"version": "1.5.0",
"description": "Publish to Cloudflare Pages",
"main": "index.js",
"scripts": {