mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-22 10:03:24 +01:00
Update README.md release version
This change updates the release version for cloudflare/wrangler-action in all examples from `1.2.0` to `1.3.0`. It also corrects a typo on the last example changing `TOML` to `YAML` based on the code below it.
This commit is contained in:
parent
60c377d0bf
commit
a33b48c9fe
1 changed files with 11 additions and 11 deletions
22
README.md
22
README.md
|
@ -63,7 +63,7 @@ If you're using Wrangler's [environments](https://developers.cloudflare.com/work
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@1.2.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
environment: 'production'
|
environment: 'production'
|
||||||
|
@ -75,7 +75,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@1.2.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
wranglerVersion: '1.6.0'
|
wranglerVersion: '1.6.0'
|
||||||
|
@ -87,7 +87,7 @@ Optionally, you can also pass a `workingDirectory` key to the action. This will
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@1.2.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
workingDirectory: 'subfoldername'
|
workingDirectory: 'subfoldername'
|
||||||
|
@ -99,7 +99,7 @@ jobs:
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@1.2.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
secrets: |
|
secrets: |
|
||||||
|
@ -116,7 +116,7 @@ If you need to run additional shell commands before or after `wrangler publish`,
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@1.2.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
preCommands: echo "*** pre command ***"
|
preCommands: echo "*** pre command ***"
|
||||||
|
@ -132,7 +132,7 @@ Set the optional `publish` input to false to skip publishing your Worker project
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
uses: cloudflare/wrangler-action@1.2.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
publish: false
|
publish: false
|
||||||
|
@ -158,7 +158,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: cloudflare/wrangler-action@1.2.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
```
|
```
|
||||||
|
@ -181,7 +181,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Publish app
|
- name: Publish app
|
||||||
uses: cloudflare/wrangler-action@1.2.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
```
|
```
|
||||||
|
@ -207,7 +207,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Publish app
|
- name: Publish app
|
||||||
uses: cloudflare/wrangler-action@1.2.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
environment: ${{ github.event.inputs.environment }}
|
environment: ${{ github.event.inputs.environment }}
|
||||||
|
@ -227,7 +227,7 @@ No problem! Check out the [Quick Start guide](https://developers.cloudflare.com/
|
||||||
|
|
||||||
To deploy static sites and frontend applications to Workers, check out the documentation for [Workers Sites](https://developers.cloudflare.com/workers/sites).
|
To deploy static sites and frontend applications to Workers, check out the documentation for [Workers Sites](https://developers.cloudflare.com/workers/sites).
|
||||||
|
|
||||||
Note that this action makes no assumptions about _how_ your project is built! **If you need to run a pre-publish step, like building your application, you need to specify a build step in your Workflow.** For instance, if I have an NPM command called `build`, my workflow TOML might resemble the following:
|
Note that this action makes no assumptions about _how_ your project is built! **If you need to run a pre-publish step, like building your application, you need to specify a build step in your Workflow.** For instance, if I have an NPM command called `build`, my workflow YAML might resemble the following:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -239,7 +239,7 @@ jobs:
|
||||||
- name: Build site
|
- name: Build site
|
||||||
run: 'npm run build'
|
run: 'npm run build'
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: cloudflare/wrangler-action@1.2.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue