Skip to content

Commit 6b0c210

Browse files
committed
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.
1 parent 477b554 commit 6b0c210

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/publish-live.yml .github/workflows/publish-website.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Publish Live Website
1+
name: Publish website - 3.12
22

33
on:
44
push:
55
branches:
6-
- live
6+
- v3.12.x
77
workflow_dispatch:
88

99
jobs:
@@ -13,7 +13,7 @@ jobs:
1313
image: pivotalrabbitmq/website-packaging
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Generate next website
16+
- name: Generate website
1717
id: generate
1818
run: |
1919
mkdir generated

ci/worker/wrangler.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name = "live"
1+
name = "rabbitmq-website-v3-12"
22
main = "src/index.ts"
33
compatibility_date = "2023-10-30"
44
workers_dev = true
5-
routes = ["https://rabbitmq.com/*", "https://www.rabbitmq.com/*", "https://live.rabbitmq.com/*"]
5+
routes = ["https://v3-12.rabbitmq.com/*"]
66

77
[site]
88
bucket = "./public"

0 commit comments

Comments
 (0)