From 3557eccbde3f12ccf9970f2d431c3f99c868a744 Mon Sep 17 00:00:00 2001 From: Giselle van Dongen Date: Tue, 5 Mar 2024 14:10:06 +0100 Subject: [PATCH] Add examples to zip creation process and fix broken commands for downloading them --- .tools/prepare_release_zip.sh | 14 +++++++++++--- .../typescript/ai-image-workflows/README.md | 4 ++-- templates/java-gradle/README.md | 4 ++-- templates/kotlin-gradle/README.md | 4 ++-- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.tools/prepare_release_zip.sh b/.tools/prepare_release_zip.sh index 95f9195d..d2026db3 100755 --- a/.tools/prepare_release_zip.sh +++ b/.tools/prepare_release_zip.sh @@ -20,8 +20,16 @@ create_release_zip templates/java-gradle java-hello-world-gradle create_release_zip templates/kotlin-gradle kotlin-hello-world-gradle create_release_zip templates/scala-sbt scala-hello-world-sbt create_release_zip templates/typescript typescript-hello-world - -create_release_zip basics/basics-typescript typescript-basics +create_release_zip templates/typescript-lambda-cdk typescript-hello-world-lambda-cdk +create_release_zip templates/kotlin-lambda-cdk kotlin-hello-world-lambda-cdk create_release_zip tutorials/tour-of-restate-java java-tour-of-restate -create_release_zip tutorials/tour-of-restate-typescript typescript-tour-of-restate \ No newline at end of file +create_release_zip tutorials/tour-of-restate-typescript typescript-tour-of-restate + +create_release_zip patterns-use-cases/ticket-reservation/ticket-reservation-typescript typescript-ticket-reservation +create_release_zip patterns-use-cases/payment-state-machine/payment-state-machine-typescript typescript-payment-state-machine + +create_release_zip end-to-end-applications/java/food-ordering java-food-ordering +create_release_zip end-to-end-applications/typescript/food-ordering typescript-food-ordering +create_release_zip end-to-end-applications/typescript/ecommerce-store typescript-ecommerce-store +create_release_zip end-to-end-applications/typescript/ai-image-workflows typescript-ai-image-workflows \ No newline at end of file diff --git a/end-to-end-applications/typescript/ai-image-workflows/README.md b/end-to-end-applications/typescript/ai-image-workflows/README.md index c7e2f39d..01b1604a 100644 --- a/end-to-end-applications/typescript/ai-image-workflows/README.md +++ b/end-to-end-applications/typescript/ai-image-workflows/README.md @@ -29,9 +29,9 @@ workflow to suspend while the steps are running. You can clone the example repository (`git clone https://github.com/restatedev/examples`) or just download this example via -- **CLI:** `restate example typescript-dynamic-workflow-executor` +- **CLI:** `restate example typescript-ai-image-workflows` -- **Zip archive:** https://github.com/restatedev/examples/releases/latest/download/typescript-dynamic-workflow-executor.zip +- **Zip archive:** https://github.com/restatedev/examples/releases/latest/download/typescript-ai-image-workflows.zip ## Running the example diff --git a/templates/java-gradle/README.md b/templates/java-gradle/README.md index 754e507d..1c035cf8 100644 --- a/templates/java-gradle/README.md +++ b/templates/java-gradle/README.md @@ -12,7 +12,7 @@ Sample project configuration of a Restate service using the Java interface and H - Via the CLI: ```shell - restate example java-hello-world-http && cd java-hello-world-http + restate example java-hello-world-gradle && cd java-hello-world-gradle ``` - Via git clone: @@ -23,7 +23,7 @@ Sample project configuration of a Restate service using the Java interface and H - Via `wget`: ```shell - wget https://github.com/restatedev/examples/releases/latest/download/java-hello-world-http.zip && unzip java-hello-world-http.zip -d java-hello-world-http && rm java-hello-world-http.zip + wget https://github.com/restatedev/examples/releases/latest/download/java-hello-world-gradle.zip && unzip java-hello-world-gradle.zip -d java-hello-world-gradle && rm java-hello-world-gradle.zip ``` ## Running the example diff --git a/templates/kotlin-gradle/README.md b/templates/kotlin-gradle/README.md index 3783ae4b..d41e92e6 100644 --- a/templates/kotlin-gradle/README.md +++ b/templates/kotlin-gradle/README.md @@ -12,7 +12,7 @@ Sample project configuration of a Restate service using the Kotlin coroutines in - Via the CLI: ```shell - restate example kotlin-hello-world-http && cd kotlin-hello-world-http + restate example kotlin-hello-world-gradle && cd kotlin-hello-world-gradle ``` - Via git clone: @@ -23,7 +23,7 @@ Sample project configuration of a Restate service using the Kotlin coroutines in - Via `wget`: ```shell - wget https://github.com/restatedev/examples/releases/latest/download/kotlin-hello-world-http.zip && unzip kotlin-hello-world-http.zip -d kotlin-hello-world-http && rm kotlin-hello-world-http.zip + wget https://github.com/restatedev/examples/releases/latest/download/kotlin-hello-world-gradle.zip && unzip kotlin-hello-world-gradle.zip -d kotlin-hello-world-gradle && rm kotlin-hello-world-gradle.zip ``` ## Running the example