Lesson 7 of 8
Deploying with Open Cloud: staging and production
Ship Beacon Yard without clicking Publish. Create a least-privilege Open Cloud API key, publish a built place from CI to a staging game, run tests in a cloud Luau execution task, promote to production, and roll back.
By the end you can
- Create an API key with the narrowest scopes and keep it only in CI secrets
- Publish a place from CI with the Assets API and poll the operation until it says published
- Keep staging and production apart, and run tests in a cloud Luau execution task
- Roll back a bad release, and know why servers keep the old version until they restart
Before this: Continuous integration: every check, blocking
Step 1 of 16
Five o'clock on a Friday
The shop is merged and the checks are green. How does it reach players? Many teams still open Studio, press File, Publish, and hope it is the right place, from the right branch, on the right machine. Nobody can tell afterwards which commit went live.
Beacon Yard's CI already builds the file you would publish. The build job turns the repository into a place and keeps it.
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: CompeyDev/setup-rokit@v0.2.1
with:
version: v1.2.0
- name: rojo build
run: |
mkdir -p build
rojo build default.project.json -o build/beacon-yard.rbxlx
- uses: actions/upload-artifact@v4
with:
name: beacon-yard-rbxlx
path: build/beacon-yard.rbxlx
Deploying means taking that file and sending it to Roblox with a program, the same way every time. Roblox's Open CloudOpen CloudRoblox's web APIs at apis.roblox.com for working with your experiences from outside Studio.Think of it as the yard office's service window, open to anyone with the right key. has an API for it, and this lesson walks the whole path: key, publish, test, promote and roll back.
What does Beacon Yard's build job upload as an artifact?
Press 1 to 4 to choose, Enter to check.
Step 2 of 16
An API key that can do one thing
An API keyAPI keyA secret string that lets a program call Open Cloud with permissions you choose.Think of it as a keycard that opens only the doors you programmed into it. is a password for a program. Treat it like one. You create it on the Creator Dashboard and choose its Access Permissions: one API system at a time, and for each the experience and the operations. A key acts with its owner's permissions, so the narrower you make it the less a leak can do1.
The place publishing guide says to add the assets API to the key, with Read and Write on the game you publish to2. Running tests adds universe.place.luau-execution-session:write3. Roblox's key guide gives the habits that matter:
- One key per application, and only the permissions it needs.
- An expiry date for short jobs. A key nobody uses or edits for 60 days expires by itself.
- An IP allowlist when you know where the program runs. Standard GitHub-hosted runners do not give you an address of your own, while larger runners can have a static one4.
- Never in source code or version control. Use a secrets store.
For deeper Open Cloud automation (reading DataStores, messaging live servers and rotating keys across scripts), see Open Cloud automation: APIs, webhooks, data tools in Module 12.
Which of these belong to a safe publishing key?
Press 1 to 5 to choose, Enter to check.
Step 3 of 16
Where the key lives, and where the ids live
In CI the key lives in the platform's secret store. On GitHub that is an Actions secret, which a workflow reads as secrets.ROBLOX_API_KEY. GitHub tries to redact a secret's value if it shows up in a log, but it says plainly that redaction is not guaranteed, because a value can be transformed or wrapped in other text first. So the rule is that no step ever prints the key, not even to debug: no echo, no env dump, no set -x around it5. If a key does reach a log, delete the log and make a new key. For the production job, use an environment with required reviewers: a person must approve before the job can run or read that environment's secrets6. On a free plan, those protection rules are available for public repositories.
Place and universe ids are not secrets, but Beacon Yard still keeps them out of tracked files. Its id guard fails CI on any number with nine or more digits outside the Ids files. At m14-ship, the deploy workflow reads your whole Ids.local.luau file from one environment secret, IDS_LOCAL_LUAU, and writes it into the checkout before it builds. That secret is the only place the workflow looks for ids. GitHub repository variables (vars.SOMETHING) also exist and suit ids that are not secret, but this workflow never reads one, so using them means editing deploy.yml yourself.
// Nine or more digits that are not part of a word, a hex hash or a decimal fraction.
const LONG_NUMBER = /(?<![\w.])\d{9,}(?!\w|\.\d)/g;
You paste your staging place id, a fifteen-digit number, into the deploy workflow file. What happens in CI?
Press 1 to 4 to choose, Enter to check.
Step 4 of 16
Rehearsal and opening night
A theatre does not try a new scene in front of the audience. It runs a dress rehearsal on the same stage with the same script, and only then opens.
| In the picture | In Roblox |
|---|---|
| The dress rehearsal | Publishing the built place to a staging game first |
| Same stage, same script | The same place file goes to staging and then to production |
| The director's go-ahead | An approval on the production environment before the job runs |
Roblox's guide for teams recommends exactly this, with one detail: make each environment its own game, not an extra place in one game, because data stores and secrets belong to the game7. So you create a staging game under your group, publish the same built place file to it first, and publish to the production game only after staging is good.
A common rule sends refs to places. Match each Git event to where it should deploy.
Step 5 of 16
First: what an HTTP request and environment variable are
Open Cloud talks over HTTP (specifically HTTPS, the encrypted web protocol). Every call has four parts:
- Method: what you want to do.
GETreads data,POSTcreates something,PATCHupdates something. - URL: which resource you are talking to, such as
https://apis.roblox.com/assets/v1/operations/<id>. - Headers: key-value metadata sent beside the request. Open Cloud expects your API key in the
x-api-keyheader. - Body: the payload you send on
POSTorPATCH, usually JSON (text with curly braces and quoted keys, like{"published": true}) or a multipart upload that bundles JSON plus a file.
Never type your API key into a script file, and never print it. Keep it in an environment variable in your terminal session. First check that it is set, without showing it:
Windows
# PowerShell: set environment variables for this terminal session
$env:ROBLOX_API_KEY = "paste-your-key-here"
$env:PLACE_ID = "paste-your-staging-place-id-here"
# Say whether the key is set, without printing it
if ($env:ROBLOX_API_KEY) { "key is set" } else { "key is missing" }
macOS
# macOS (zsh/bash): set environment variables for this terminal session
export ROBLOX_API_KEY="paste-your-key-here"
export PLACE_ID="paste-your-staging-place-id-here"
# Say whether the key is set, without printing it
[ -n "$ROBLOX_API_KEY" ] && echo "key is set" || echo "key is missing"
Linux
# Linux (bash): set environment variables for this terminal session
export ROBLOX_API_KEY="paste-your-key-here"
export PLACE_ID="paste-your-staging-place-id-here"
# Say whether the key is set, without printing it
[ -n "$ROBLOX_API_KEY" ] && echo "key is set" || echo "key is missing"
The first real call comes in the next step. A status check needs an operation id, and only a publish gives you one, so there is nothing safe to GET yet.
Every call is answered with a status code (200 OK, 401 Unauthorized if the key is wrong, 404 Not Found if the id does not exist) and a JSON body.
Match each piece of an Open Cloud call to its HTTP role.
Step 6 of 16
The publish call
Publishing a place is one PATCH request to the Assets API. You send the place file as fileContent and a JSON request that must say "published": true. Without that, the upload is saved as a new version that players never see2.
You will also meet an older route in tools and samples: POST /universes/v1/{universeId}/places/{placeId}/versions, which takes the file as the whole body and answers at once with a version number. It is still in the API reference on 2026-11-25, but the place publishing guide now teaches the Assets API, so that is what Beacon Yard uses8.
This curl command runs in a Linux CI job (bash) or on macOS/Linux. On Windows, PowerShell 5.1 aliases curl to Invoke-WebRequest, so use Invoke-RestMethod (PowerShell 7+) or curl.exe instead:
Linux
# Linux CI runner (ubuntu-latest) or macOS/Linux bash
curl --location --request PATCH "https://apis.roblox.com/assets/v1/assets/$PLACE_ID" \
--header "x-api-key: $ROBLOX_API_KEY" \
--form "request={\"assetId\": $PLACE_ID, \"assetType\": \"Place\", \"published\": true}" \
--form "fileContent=@build/beacon-yard.rbxlx;type=application/xml"
Windows
# PowerShell 7+: multipart PATCH with Invoke-RestMethod
$form = @{
request = "{`"assetId`": $env:PLACE_ID, `"assetType`": `"Place`", `"published`": true}"
fileContent = Get-Item "build/beacon-yard.rbxlx"
}
$operation = Invoke-RestMethod `
-Method Patch `
-Uri "https://apis.roblox.com/assets/v1/assets/$env:PLACE_ID" `
-Headers @{ "x-api-key" = $env:ROBLOX_API_KEY } `
-Form $form
$operation.path # prints operations/<id>
macOS
# macOS (zsh/bash)
curl --location --request PATCH "https://apis.roblox.com/assets/v1/assets/$PLACE_ID" \
--header "x-api-key: $ROBLOX_API_KEY" \
--form "request={\"assetId\": $PLACE_ID, \"assetType\": \"Place\", \"published\": true}" \
--form "fileContent=@build/beacon-yard.rbxlx;type=application/xml"
The answer is not a version. Roblox processes the upload asynchronously and returns {"path": "operations/<id>"}. You poll GET /assets/v1/operations/<id> until done is true. Then either response holds the new revisionId and isPublished, or error explains what failed. Now you have an operation path to ask about. Here is the poll, using the path the PATCH just returned:
Windows
# $operation.path came back from the PATCH above
Invoke-RestMethod `
-Method Get `
-Uri "https://apis.roblox.com/assets/v1/$($operation.path)" `
-Headers @{ "x-api-key" = $env:ROBLOX_API_KEY }
macOS
# Paste the "path" value from the PATCH answer, for example operations/abc123
export OPERATION_PATH="paste-the-operation-path-here"
curl --header "x-api-key: $ROBLOX_API_KEY" \
"https://apis.roblox.com/assets/v1/$OPERATION_PATH"
Linux
# Paste the "path" value from the PATCH answer, for example operations/abc123
export OPERATION_PATH="paste-the-operation-path-here"
curl --header "x-api-key: $ROBLOX_API_KEY" \
"https://apis.roblox.com/assets/v1/$OPERATION_PATH"
Run it again until done is true. The PATCH really does publish, so run these two calls only against your staging place. The type is application/xml for a .rbxlx file and application/octet-stream for a binary .rbxl.
CI builds build/beacon-yard.rbxlx. Which content type goes with that file in the fileContent field?
Press 1 to 4 to choose, Enter to check.
You change the last poll to isPublished = false. What does the cell print on line 3?
{ done = true, response = { revisionId = "42", isPublished = false } }
Press 1 to 4 to choose, Enter to check.
Step 7 of 16
What the publish API will not update
One more detail from the guide: the place publishing API does not update EditableImage, EditableMesh, PartOperation, SurfaceAppearance or BaseWrap instances. If your game contains them, publish from Studio after changing them2.
Beacon Yard's yard is built by code at the start of Play, so almost nothing lives in the place file. The exceptions are art you add by hand, such as the Negate-and-Union arch from the building challenge. A union is a PartOperation.
You add a hand-built Union arch to your place, change it, and publish only through the API from CI. What should you expect?
Press 1 to 4 to choose, Enter to check.
Step 8 of 16
Run the tests in the cloud
Publishing to staging is only half a rehearsal. You also want to know that the build works. The Luau execution API creates a task that loads a place version on a Roblox server and runs the script you send. You poll the task, then read its return values and its logs3.
Know its limits before you rely on it. In a task, physics does not run, and the place's own server and local scripts do not start by themselves. A task can run for up to five minutes, at most ten tasks per place may be incomplete at once, and creating tasks is limited to five a minute per key owner. Each print is one log message. Roblox's sample repository for this flow is archived and warns that it was not battle tested9. Its README mentions a lower concurrency limit than the current reference, so trust the reference.
For Beacon Yard this has a sharp consequence. The playtest suite, RunGameTests, needs the game's server script to be running during Play, so it cannot run inside a task. Pure tests can: functions that take values and return values, such as the challenge modules in this module.
The suite's output is what a deploy job reads. Every result is one printed line that starts with a fixed word.
print("TEST PASS " .. name)
end
local function fail(name: string, reason: string)
print("TEST FAIL " .. name .. ": " .. reason)
end
local function skip(name: string, reason: string)
print("TEST SKIP " .. name .. ": " .. reason)
Which test can Beacon Yard run inside a Luau execution task?
Press 1 to 4 to choose, Enter to check.
What is the longest, in minutes, that a Luau execution task may run?
Step 9 of 16
The order of a deploy job
Put the pieces in order. Each step depends on the last one succeeding, and a version number from the publish step is what lets the test task pin the exact build you just uploaded.
Put a staging deploy job in order.
- Create a Luau execution task pinned to that revision
- Poll the operation until it is done and published, and keep the revisionId
- Build the place with rojo build
- Publish it to the staging place with the Assets API
- Poll the task and read its logs
- Fail the job unless the verdict is a pass
Step 10 of 16
Run the real m14-ship deploy against your staging place
Beacon Yard's real deploy workflow lives at m14-ship in .github/workflows/deploy.yml, and calls scripts/publish-place.mjs (Node.js 18+, so it runs the same way on Windows, macOS and Linux). Notice how it works:
on:
workflow_dispatch:
inputs:
places:
description: Which place to publish
type: choice
options:
- both
- lobby
- yard
default: both
release:
types: [published]
# One deploy at a time, and a running deploy is never cancelled halfway.
concurrency:
group: deploy
cancel-in-progress: false
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: CompeyDev/setup-rokit@1d9390883f7ebce19d48f5b8d006e11d387c92ab # v0.2.1
with:
version: v1.2.0
- name: wally install
run: wally install
- name: Write the ids file
env:
IDS_LOCAL_LUAU: ${{ secrets.IDS_LOCAL_LUAU }}
run: |
if [ -z "$IDS_LOCAL_LUAU" ]; then
echo "Set the IDS_LOCAL_LUAU secret to the text of your Ids.local.luau" >&2
exit 1
fi
printf '%s\n' "$IDS_LOCAL_LUAU" > src/shared/Ids.local.luau
- name: Build the art from your ids
run: node scripts/gen-assets.mjs
- name: Check
run: |
stylua --check .
selene src tests unit
bash scripts/typecheck.sh
- name: rojo build
run: |
mkdir -p build
rojo build default.project.json -o build/beacon-yard.rbxlx
- name: Publish
env:
ROBLOX_API_KEY: ${{ secrets.ROBLOX_API_KEY }}
PLACES: ${{ inputs.places || 'both' }}
run: node scripts/publish-place.mjs "$PLACES" build/beacon-yard.rbxlx
Instead of publishing on every push to main, Beacon Yard's deploy.yml triggers only on a manual Actions tab run (workflow_dispatch) or a published GitHub Release, inside the production environment. It reads ROBLOX_API_KEY and IDS_LOCAL_LUAU from environment secrets, checks format, lint and types, builds build/beacon-yard.rbxlx, and runs scripts/publish-place.mjs.
The script follows the same sequence you just ran by hand: PATCH, then poll the operation every two seconds for up to two minutes. It also enforces the rule from the cell above. A finished operation counts as a deploy only when isPublished is true. If the operation ends with an error, or ends saved but not published, the script prints what happened and exits with code 1, so the job turns red. The check is in the excerpt below.
Because scripts/publish-place.mjs accepts a direct place id and a --dry-run flag, you can test it safely from your own machine against your own staging place right now:
async function publish(place) {
const url = `${API}/assets/${place.id}`;
const request = `{"assetId": ${place.id}, "assetType": "Place", "published": true}`;
console.log(`${place.name}: PATCH ${url}`);
console.log(`${place.name}: request ${request}, fileContent ${path.basename(file)} (${contentTypes[ext]})`);
if (dryRun) {
return;
}
const form = new FormData();
form.append("request", request);
form.append("fileContent", new Blob([readFileSync(file)], { type: contentTypes[ext] }), path.basename(file));
const response = await fetch(url, { method: "PATCH", headers: { "x-api-key": key }, body: form });
const text = await response.text();
if (!response.ok) {
fail(`${place.name}: ${response.status} ${text}`);
}
let operation;
try {
operation = JSON.parse(text).path;
} catch {
fail(`${place.name}: unexpected response ${text}`);
}
if (typeof operation !== "string" || !operation.startsWith("operations/")) {
fail(`${place.name}: unexpected response ${text}`);
}
// The upload is processed in the background. Poll until it says done.
for (let attempt = 1; attempt <= 60; attempt++) {
await new Promise((resolve) => setTimeout(resolve, 2000));
const poll = await fetch(`${API}/${operation}`, { headers: { "x-api-key": key } });
const pollText = await poll.text();
let body;
try {
body = JSON.parse(pollText);
} catch {
fail(`${place.name}: polling ${operation} gave ${poll.status} ${pollText}`);
}
if (!poll.ok) {
fail(`${place.name}: polling ${operation} gave ${poll.status} ${pollText}`);
}
if (body.done) {
if (body.error) {
fail(`${place.name}: publish failed: ${body.error.code} ${body.error.message}`);
}
// A finished upload that is not published is a saved draft, not a
// deploy: players still run the old version, so the job must fail.
if (body.response?.isPublished !== true) {
fail(
`${place.name}: version ${body.response?.revisionId} was saved but is not published (isPublished ${body.response?.isPublished}). Players still run the old version`,
Build along
.github/workflows/deploy.ymlscripts/publish-place.mjs
On the Creator Dashboard, create a private staging game and note its place id from the address of its Places page.
You should see A new game named like STAGING - Beacon Yard under your account or group, with its place id visible in the Creator Dashboard address.
Create an Open Cloud API key with assets (Read and Write) scoped to your staging game only.
You should see The key appears once. You copy it straight into a password manager, and the key's page lists only the assets API (Read and Write) for your staging game.
Check out
m14-ship, runwally installandrojo build default.project.json -o build/beacon-yard.rbxlx, then runnode scripts/publish-place.mjs 12345 build/beacon-yard.rbxlx --dry-run. The number is only a sample: a dry run sends nothing, so any digits work.You should see build/beacon-yard.rbxlx exists, and the dry run prints the PATCH URL and JSON request without sending anything.
Set
ROBLOX_API_KEYandPLACE_IDin your terminal as in the HTTP step, then runnode scripts/publish-place.mjs $env:PLACE_ID build/beacon-yard.rbxlxin PowerShell, ornode scripts/publish-place.mjs "$PLACE_ID" build/beacon-yard.rbxlxon macOS and Linux, without--dry-run.You should see The script prints the PATCH call, polls the operation, and ends with published version <n> (isPublished true).
Open your staging place in Studio (or on Creator Dashboard) and check Version History. Then wire up
.github/workflows/deploy.ymlin your fork with theproductionenvironment secretsROBLOX_API_KEYandIDS_LOCAL_LUAUif you want one-click deploys from GitHub Actions.You should see Version History in Studio or Creator Dashboard lists the new published version for your staging place.
The deploy job printed 'published' but the staging game still shows yesterday's Beacon Yard. Which check finds the cause first?
Press 1 to 4 to choose, Enter to check.
Step 11 of 16
A smoke test against staging
The staging place is published. Is the version players would get actually whole? A smoke test is a short check that the build loads and its core rules still answer correctly, run against the exact version you just published. Luau execution can run it there: the task loads that version on a Roblox server and runs your script, but the game's own scripts and physics never start3.
What about the Jest-Lua specs in unit/specs? The game's runner loads them with debug.loadmodule, and its own comment says to run it from the command bar in Edit mode, not in Play. Roblox does not document whether a Luau execution task allows that, so this smoke test does not depend on it. It requires two of the same pure modules the specs cover, ReceiptRules and MatchRules, from the published place and calls them directly. It prints the same TEST PASS, TEST FAIL and TEST SUITE DONE lines the deploy challenge reads.
-- tasks/smoke.luau: sent as the script of a Luau execution task.
-- It runs inside the place version you just published. The game's own
-- scripts do not start in a task, so this only loads and calls modules.
local Server = game:GetService("ServerScriptService").Server
local function check(name: string, ok: boolean)
print((if ok then "TEST PASS " else "TEST FAIL ") .. name)
end
local receiptOk, ReceiptRules = pcall(require, Server.ReceiptRules)
check("receipt_rules_load", receiptOk)
if receiptOk then
local data = { coins = 0, recentPurchaseIds = {} }
local receipt = { PurchaseId = "smoke-1", PlayerId = 1, ProductId = 1 }
ReceiptRules.applyReceipt(data, receipt, 50)
local again = ReceiptRules.applyReceipt(data, receipt, 50)
check("receipt_grants_once", data.coins == 50 and again == nil)
end
local matchOk, MatchRules = pcall(require, Server.MatchRules)
check("match_rules_load", matchOk)
if matchOk then
local good = MatchRules.readItem({ userId = 1, at = 0 })
local bad = MatchRules.readItem({ userId = "1", at = 0 })
check("queue_entry_checked", good ~= nil and bad == nil)
end
print("TEST SUITE DONE")
To create the task you need the experience's universe id (the number after /experiences/ in the Creator Dashboard address) and the version number the publish script printed. Then send the script, poll the task, and read its logs:
Linux
# One-time: turn the script into a JSON body
node -e 'process.stdout.write(JSON.stringify({ script: require("fs").readFileSync("tasks/smoke.luau", "utf8") }))' > build/smoke.json
TASK_PATH=$(curl --silent --request POST \
"https://apis.roblox.com/cloud/v2/universes/$UNIVERSE_ID/places/$PLACE_ID/versions/$VERSION/luau-execution-session-tasks" \
--header "x-api-key: $SMOKE_API_KEY" --header "Content-Type: application/json" \
--data @build/smoke.json | node -pe 'JSON.parse(require("fs").readFileSync(0)).path')
until STATE=$(curl --silent "https://apis.roblox.com/cloud/v2/$TASK_PATH" --header "x-api-key: $SMOKE_API_KEY" \
| node -pe 'JSON.parse(require("fs").readFileSync(0)).state'); [ "$STATE" != QUEUED ] && [ "$STATE" != PROCESSING ]; do sleep 2; done
echo "$STATE"
curl --silent "https://apis.roblox.com/cloud/v2/$TASK_PATH/logs" --header "x-api-key: $SMOKE_API_KEY"
Windows
$headers = @{ "x-api-key" = $env:SMOKE_API_KEY }
$body = @{ script = Get-Content tasks/smoke.luau -Raw } | ConvertTo-Json
$task = Invoke-RestMethod -Method Post -Headers $headers -ContentType "application/json" -Body $body `
-Uri "https://apis.roblox.com/cloud/v2/universes/$env:UNIVERSE_ID/places/$env:PLACE_ID/versions/$env:VERSION/luau-execution-session-tasks"
do {
Start-Sleep -Seconds 2
$task = Invoke-RestMethod -Headers $headers -Uri "https://apis.roblox.com/cloud/v2/$($task.path)"
} while ($task.state -in "QUEUED", "PROCESSING")
$task.state
(Invoke-RestMethod -Headers $headers -Uri "https://apis.roblox.com/cloud/v2/$($task.path)/logs").luauExecutionSessionTaskLogs.messages
Build along
Create a second Open Cloud API key for the smoke test with only
universe.place.luau-execution-session:write(the Luau execution API, Write) on your staging experience. Put it in your password manager asSMOKE_API_KEY.You should see A second key exists, separate from the publishing key. Its page lists only the Luau execution API with Write, for your staging experience.
Save the script above as
tasks/smoke.luauin your fork, and setUNIVERSE_ID,PLACE_ID,VERSIONandSMOKE_API_KEYin your terminal.You should see tasks/smoke.luau exists in your fork. It is not inside src, so Rojo does not build it into the place.
Run the commands for your system against the version you published in the step above.
You should see The state prints COMPLETE, and the logs hold four TEST PASS lines and TEST SUITE DONE.
Change
data.coins == 50todata.coins == 100in the script and run it again.You should see The state is still COMPLETE, but the logs now say TEST FAIL receipt_grants_once. Undo the edit afterwards.
Your edited smoke script prints TEST FAIL receipt_grants_once, then TEST SUITE DONE. What state does the task end in, and what should the deploy job do?
Press 1 to 4 to choose, Enter to check.
CI already checked ReceiptRules before the merge. What does the smoke test against staging add?
Press 1 to 4 to choose, Enter to check.
Step 12 of 16
Taking it back
Every deploy plan needs the way back. You have three, and none of them is a surprise. Restoring never publishes by itself10.
Reference Three ways back
Pick the one that matches how the bad version got live. If CI put it there, CI should be able to take it back.
Window, Version History, Open Local Copy, then Save to Roblox As- Overwrites the place with an older version. This creates a new version and does not publish it.
Configurations, Places, Version History, Restore- Restores a chosen version. The same rule applies: a restore is not a publish.
Re-run the deploy job on an older tag- The history of what went live is then a Git history. Fastest when the job is already trusted.
After a restore or a deploy, running servers keep the version they started with. Roblox's update guide lets you restart outdated servers only, with an optional delay of up to an hour so players can finish a round11. It also suggests deploying early and hiding new content behind a config, then switching the config on.
You restore the place to last week's version on the Dashboard. The game is public. What else must you do to replace the live version?
Press 1 to 4 to choose, Enter to check.
Beacon Yard v2 changes how a profile is saved, and players play on it for a day. You roll the code back. What is still different?
Press 1 to 4 to choose, Enter to check.
Step 13 of 16
Where the rehearsal picture breaks
Both sidesRemember: Staging and production is a dress rehearsal before opening night.
A theatre rehearses with the same cast and the same set. Answer before you open the breakdown.
Where does it break?“A dress rehearsal before opening night” is a good picture of staging and production. Where does it stop being true?
It breaks here. A rehearsal has the same cast and the same set, but staging is a separate game with its own data stores and no real players, so it never meets live data or live load.
The true model. Staging and production are separate games under one group. The same place file is published to both, one after the other. Staging catches broken builds and failing tests. It cannot show how real player data or real traffic will behave, so production keeps an approval and a rollback.
Staging passes every test. Why can production still behave differently on opening night?
Press 1 to 4 to choose, Enter to check.
Step 14 of 16
Ways to ship
Other ways pros do this
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| Publish from Studio | File, then Publish to Roblox, by hand. | Solo creators and prototypes, and for the instance types the API cannot update. | Depends on one person and one machine. Nothing records which commit went live. |
| CI with the Open Cloud API | A workflow builds the place and calls the Assets and Luau execution APIs, from curl or a Lune script. | Teams with Git. What Roblox's file-based workflow guide describes for Stable and Production. | You write and maintain the job, and keys need care. |
| rbxcloud | A community command line tool and Rust library for Open Cloud. | Shell steps that call a few endpoints. | Community-run. Its repository's last push was in March 2025, so check that the endpoint you need is covered. |
| Roblox's place-ci-cd-demo | A sample workflow that lints, builds, publishes and runs tests with Luau execution. | Reading it to see one way the pieces connect. | Archived, labelled not battle tested, and written for fully managed Rojo. |
| Mantle | Infrastructure as code for places, products and passes. | You may meet it in older studios. | Its README says it is no longer maintained. Do not start with it. |
Which job is still best done by hand in Studio, even on a team that deploys from CI?
Press 1 to 4 to choose, Enter to check.
Step 15 of 16
Challenges
Level 1, Apprentice
Challenge
Make the place that your deploy job will publish to.
- Start from
- Any Roblox account, signed in to the Creator Dashboard
Done means
- A staging game and place exist, named so nobody mistakes them for production
- You can read the place id from the dashboard address
- No id is written into a file in your repository
Meet the criteria above, then record your own result. No test grades this check.
Level 2, Builder
Challenge
Write the script that the deploy job will call.
- Start from
- m06-drone-wrench, with Lune installed and a staging game
Done means
- tools/publish.luau reads ROBLOX_API_KEY and the place id from the environment and sends the place file to the Assets API
- It polls the operation until done and exits with an error unless the place is published
- It prints the revision id and never prints the key
Meet the criteria above, then record your own result. No test grades this check.
Why does the level 3 challenge check the verdict from a task's state and its logs together?
Press 1 to 4 to choose, Enter to check.
Level 3, Professional
Challenge
Write the three decisions a deploy job makes, so each can be tested without a network. Start from the m14-ship tag in the game repo, then run it with game.ServerScriptService.RunGameTests:Invoke("deploy").
The routing rule in the first criterion is a made-up workflow for this exercise, the one from the match question above. Do not use it to predict what Beacon Yard's own deploy.yml does. That file ignores refs: it publishes only from a manual run or a published release, inside the production environment.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("deploy")in the server command bar. Copy the pass code from Output.
Done means
- challenges/work/deploy_plan.luau sends main to staging, a three-number v tag to production, and every other ref nowhere
- readOperation tells pending, failed, unpublished and published apart, and keeps the revision and the error message
- testVerdict counts passes, fails and skips across multi-line log messages, treats silence as a fail, and reports running tasks as running
- The deploy challenge prints TEST PASS for all eleven checks
Step 16 of 16
Recap
Retiring the analogy
You no longer need “a dress rehearsal before opening night”. Staging and production are separate games under one group. The same place file is published to both, one after the other. Staging catches broken builds and failing tests. It cannot show how real player data or real traffic will behave, so production keeps an approval and a rollback.
Recap
- A deploy is one repeatable program: build the place, publish it with a narrow key kept in CI secrets, poll the operation, then test in the cloud before promoting.
- Staging and production are separate games with separate data. Main goes to staging, an approved release tag goes to production, and a publish only counts when isPublished is true.
- Plan the way back: restore a version and publish it, or re-run an older tag. Running servers keep the old version until restarted, and a rollback never rolls back saved data.
Staging and production is a dress rehearsal before opening night, until a rehearsal has the same cast and the same set, but staging is a separate game with its own data stores and no real players, so it never meets live data or live load.
Queued for review
- What does Beacon Yard's build job upload as an artifact?
- You paste your staging place id, a fifteen-digit number, into the deploy workflow file. What happens in CI?
- You change the last poll to isPublished = false. What does the cell print on line 3?
- Which test can Beacon Yard run inside a Luau execution task?
- Beacon Yard v2 changes how a profile is saved, and players play on it for a day. You roll the code back. What is still different?
Next AI-assisted development: Studio MCP, Assistant, Blender MCP