mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-21 17:43:23 +01:00
Fix examples in README.md
This commit is contained in:
parent
c8bbc2b667
commit
4318a2fb97
1 changed files with 13 additions and 13 deletions
26
README.md
26
README.md
|
@ -6,7 +6,7 @@ Easy-to-use GitHub Action to use [Wrangler](https://developers.cloudflare.com/wo
|
||||||
|
|
||||||
- Wrangler v1 is no longer supported.
|
- Wrangler v1 is no longer supported.
|
||||||
- Global API key & Email Auth no longer supported
|
- Global API key & Email Auth no longer supported
|
||||||
- Action version syntax is newly supported. This means e.g. `uses: cloudflare/wrangler-action@v3`, `uses: cloudflare/wrangler-action@v3.x`, `uses: cloudflare/wrangler-action@v3.x.x` and are both now valid syntax. Previously supported syntax e.g. `uses: cloudflare/wrangler-action@3.x.x` will no longer be supported, the prefix `v` will be necessary.
|
- Action version syntax is newly supported. This means e.g. `uses: cloudflare/wrangler-action@v3`, `uses: cloudflare/wrangler-action@v3.x`, and `uses: cloudflare/wrangler-action@v3.x.x` are both now valid syntax. Previously supported syntax e.g. `uses: cloudflare/wrangler-action@3.x.x` will no longer be supported, the prefix `v` will be necessary.
|
||||||
|
|
||||||
[Refer to Changelog for more information](CHANGELOG.md).
|
[Refer to Changelog for more information](CHANGELOG.md).
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
```
|
```
|
||||||
|
@ -45,7 +45,7 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
```
|
```
|
||||||
|
@ -58,7 +58,7 @@ If you need to install a specific version of Wrangler to use for deployment, you
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
wranglerVersion: "2.20.0"
|
wranglerVersion: "2.20.0"
|
||||||
|
@ -70,7 +70,7 @@ Optionally, you can also pass a `workingDirectory` key to the action. This will
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
workingDirectory: "subfoldername"
|
workingDirectory: "subfoldername"
|
||||||
|
@ -82,7 +82,7 @@ jobs:
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
secrets: |
|
secrets: |
|
||||||
|
@ -99,7 +99,7 @@ If you need to run additional shell commands before or after your command, you c
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
preCommands: echo "*** pre command ***"
|
preCommands: echo "*** pre command ***"
|
||||||
|
@ -115,7 +115,7 @@ You can use the `command` option to do specific actions such as running `wrangle
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
command: whoami
|
command: whoami
|
||||||
|
@ -140,7 +140,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
```
|
```
|
||||||
|
@ -161,7 +161,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
||||||
|
@ -184,7 +184,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Deploy app
|
- name: Deploy app
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
```
|
```
|
||||||
|
@ -210,7 +210,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Deploy app
|
- name: Deploy app
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
command: deploy --env ${{ github.event.inputs.environment }}
|
command: deploy --env ${{ github.event.inputs.environment }}
|
||||||
|
@ -238,7 +238,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Deploy app
|
- name: Deploy app
|
||||||
uses: cloudflare/wrangler-action@3.0.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
||||||
|
|
Loading…
Reference in a new issue