Skip to content

Commit

Permalink
Wrangler: Prepare the deploy to v3-12.rabbitmq.com
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
dumbbell committed Feb 20, 2024
1 parent 477b554 commit 6b0c210
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish Live Website
name: Publish website - 3.12

on:
push:
branches:
- live
- v3.12.x
workflow_dispatch:

jobs:
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions ci/worker/wrangler.toml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 6b0c210

Please sign in to comment.