From 9003b060156c46e38cd98e1e9495bbef3b2ab7db Mon Sep 17 00:00:00 2001 From: Rahul Sethi <5822355+RamIdeas@users.noreply.github.com> Date: Wed, 3 Apr 2024 18:16:19 +0100 Subject: [PATCH 1/3] add versions upload instructions to README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 201a5cd..1007b3b 100644 --- a/README.md +++ b/README.md @@ -218,6 +218,25 @@ jobs: For more advanced usage or to programmatically trigger the workflow from scripts, refer to [the GitHub documentation](https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event) for making API calls. +### Upload a Worker Version + +To create a new Version of your Worker that is not deployed immediately, use the `wrangler versions upload --experimental-versions` command. Worker Versions created in this way can then be deployed all at once or gradually deployed using the `wranger versions deploy --experimental-versions` command or via the Cloudflare dashboard under the Deployments tab. For now, the `--experimental-versions` flag is required to use this feature. + +```yaml +jobs: + upload: + runs-on: ubuntu-latest + name: Deploy + steps: + - uses: actions/checkout@v4 + - name: Upload Worker Version + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: versions upload --experimental-versions +``` + ## Advanced Usage ### Using Wrangler Command Output in Subsequent Steps From 180648017b8f3f1cf0ff33808dfca924bfea0048 Mon Sep 17 00:00:00 2001 From: Rahul Sethi <5822355+RamIdeas@users.noreply.github.com> Date: Wed, 3 Apr 2024 18:27:15 +0100 Subject: [PATCH 2/3] add minimum wrangler version info --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1007b3b..309a804 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ For more advanced usage or to programmatically trigger the workflow from scripts ### Upload a Worker Version -To create a new Version of your Worker that is not deployed immediately, use the `wrangler versions upload --experimental-versions` command. Worker Versions created in this way can then be deployed all at once or gradually deployed using the `wranger versions deploy --experimental-versions` command or via the Cloudflare dashboard under the Deployments tab. For now, the `--experimental-versions` flag is required to use this feature. +To create a new Version of your Worker that is not deployed immediately, use the `wrangler versions upload --experimental-versions` command. Worker Versions created in this way can then be deployed all at once or gradually deployed using the `wranger versions deploy --experimental-versions` command or via the Cloudflare dashboard under the Deployments tab. For now, the `--experimental-versions` flag and wrangler v3.40.0 or above is required to use this feature. ```yaml jobs: From 1be73b90f66f848d5bce32bdbd73f06981adb465 Mon Sep 17 00:00:00 2001 From: Rahul Sethi <5822355+RamIdeas@users.noreply.github.com> Date: Wed, 3 Apr 2024 18:31:44 +0100 Subject: [PATCH 3/3] update copy --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 309a804..c829d92 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ For more advanced usage or to programmatically trigger the workflow from scripts ### Upload a Worker Version -To create a new Version of your Worker that is not deployed immediately, use the `wrangler versions upload --experimental-versions` command. Worker Versions created in this way can then be deployed all at once or gradually deployed using the `wranger versions deploy --experimental-versions` command or via the Cloudflare dashboard under the Deployments tab. For now, the `--experimental-versions` flag and wrangler v3.40.0 or above is required to use this feature. +To create a new version of your Worker that is not deployed immediately, use the `wrangler versions upload --experimental-versions` command. Worker versions created in this way can then be deployed all at once at a later time or gradually deployed using the `wranger versions deploy --experimental-versions` command or via the Cloudflare dashboard under the Deployments tab. For now, the `--experimental-versions` flag and wrangler v3.40.0 or above is required to use this feature. ```yaml jobs: