Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,26 @@ jobs:

- name: Publish nightly build to Creator Store
run: lune run publish-plugin --channel dev --apiKey ${{ secrets.ROBLOX_API_KEY }}

publish-smoketest-plugin:
runs-on: ubuntu-latest
timeout-minutes: 5
environment:
name: roblox-creator-store-smoketest
env:
LOG_LEVEL: debug
steps:
- uses: actions/checkout@v4

- uses: CompeyDev/setup-rokit@v0.1.2
with:
version: v1.1.1

- name: Install dependencies
run: lute scripts/install.luau

- name: Create .env
run: cp .env.template .env

- name: Publish release to Creator Store
run: lune run publish-plugin --smoketest --channel prod --apiKey ${{ secrets.ROBLOX_API_KEY }}
6 changes: 4 additions & 2 deletions .lune/publish-plugin.luau
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ assert(channel == "dev" or channel == "prod", `bad value for channel (must be on
local apiKey = assert(args.apiKey, "--apiKey must be supplied with a valid Open Cloud API key")
assert(typeof(apiKey) == "string", `bad value for apiKey (string expected, got {typeof(apiKey)})`)

run("lute", { "scripts/build.luau", "--channel", channel, "--plugin", "--output", "Flipbook.rbxm" })
run("lute", { "scripts/build.luau", "plugin", "--channel", channel, "--output", "Flipbook.rbxm" })

local assetName = if args.smoketest then "smoketest" else channel

-- Each of the assets defined in rbxasset.toml map to one of the options of
-- `--channel` for simplicity
rbxasset.publishPackageAsync(process.cwd, channel, apiKey)
rbxasset.publishPackageAsync(process.cwd, assetName, apiKey)
3 changes: 3 additions & 0 deletions rbxasset.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ assetId = "88523969718241"
[assets.prod]
assetId = "8517129161"

[assets.smoketest]
assetId = "93737943158055"

[images]
9 changes: 9 additions & 0 deletions rbxasset.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ model = "Flipbook.rbxm"
environment = "prod"
type = "Plugin"

[assets.smoketest]
name = "Flipbook"
description = """This is a development version of Flipbook for testing out unreleased changes.

View the latest release of Flipbook here: https://create.roblox.com/store/asset/8517129161/flipbook"""
model = "Flipbook.rbxm"
environment = "prod"
type = "Plugin"

[environments.prod]
creatorId = 1343930
creatorType = "User"
Expand Down