From 6b0c210e9271d12eb2c085ce1ad76ed16f8175f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Mon, 19 Feb 2024 19:04:03 +0100 Subject: [PATCH] Wrangler: Prepare the deploy to v3-12.rabbitmq.com [Why] The current website will be replaced by a Docusaurus-base new website that supports docs versioning. The new website will cover RabbitMQ versions starting with 3.13.0. We want to keep a copy of the docs of RabbitMQ 3.12.x. Therefore, we want to publish what was the `live` branch to v3-12.rabbitmq.com. [How] The method remains the same: we use Cloudflare's Wrangler to deploy the generated static website to a Cloudflare worker. --- .github/workflows/{publish-live.yml => publish-website.yml} | 6 +++--- ci/worker/wrangler.toml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{publish-live.yml => publish-website.yml} (88%) diff --git a/.github/workflows/publish-live.yml b/.github/workflows/publish-website.yml similarity index 88% rename from .github/workflows/publish-live.yml rename to .github/workflows/publish-website.yml index 2dc6c75cbf..2f5e4fca79 100644 --- a/.github/workflows/publish-live.yml +++ b/.github/workflows/publish-website.yml @@ -1,9 +1,9 @@ -name: Publish Live Website +name: Publish website - 3.12 on: push: branches: - - live + - v3.12.x workflow_dispatch: jobs: @@ -13,7 +13,7 @@ jobs: image: pivotalrabbitmq/website-packaging steps: - uses: actions/checkout@v4 - - name: Generate next website + - name: Generate website id: generate run: | mkdir generated diff --git a/ci/worker/wrangler.toml b/ci/worker/wrangler.toml index fc68d4e655..acd8493dbe 100644 --- a/ci/worker/wrangler.toml +++ b/ci/worker/wrangler.toml @@ -1,8 +1,8 @@ -name = "live" +name = "rabbitmq-website-v3-12" main = "src/index.ts" compatibility_date = "2023-10-30" workers_dev = true -routes = ["https://rabbitmq.com/*", "https://www.rabbitmq.com/*", "https://live.rabbitmq.com/*"] +routes = ["https://v3-12.rabbitmq.com/*"] [site] bucket = "./public"