From c5063d713ecd60eb2e0dc81e2f15e28350d07934 Mon Sep 17 00:00:00 2001 From: Micah Date: Fri, 13 Feb 2026 18:40:45 -0800 Subject: [PATCH] Skip uploading plugin if the version is a pre-release --- .lune/upload-plugin.luau | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.lune/upload-plugin.luau b/.lune/upload-plugin.luau index 6cdf68b3..e71acf6c 100644 --- a/.lune/upload-plugin.luau +++ b/.lune/upload-plugin.luau @@ -7,6 +7,13 @@ local luau_execute = require("./opencloud-execute") local UNIVERSE_ID = process.env["RBX_UNIVERSE_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] assert( typeof(plugin_path) == "string",