mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-25 04:54:07 +00:00
Skip uploading plugin if the version is a pre-release
This commit is contained in:
parent
27a9f5fbf9
commit
c5063d713e
1 changed files with 7 additions and 0 deletions
|
|
@ -7,6 +7,13 @@ local luau_execute = require("./opencloud-execute")
|
||||||
local UNIVERSE_ID = process.env["RBX_UNIVERSE_ID"]
|
local UNIVERSE_ID = process.env["RBX_UNIVERSE_ID"]
|
||||||
local PLACE_ID = process.env["RBX_PLACE_ID"]
|
local PLACE_ID = process.env["RBX_PLACE_ID"]
|
||||||
|
|
||||||
|
local version_string = fs.readFile("plugin/Version.txt")
|
||||||
|
local versions = { string.match(version_string, "^v?(%d+)%.(%d+)%.(%d+)(.*)$") }
|
||||||
|
if versions[4] ~= "" then
|
||||||
|
print("This release is a pre-release. Skipping uploading plugin.")
|
||||||
|
process.exit(0)
|
||||||
|
end
|
||||||
|
|
||||||
local plugin_path = process.args[1]
|
local plugin_path = process.args[1]
|
||||||
assert(
|
assert(
|
||||||
typeof(plugin_path) == "string",
|
typeof(plugin_path) == "string",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue