mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
chore(ci): Remove GitHub Packages publishing workflow (#4368)
This commit is contained in:
parent
f9cc7080f8
commit
73c790290c
5 changed files with 38 additions and 54 deletions
|
|
@ -14,19 +14,19 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import java.io.FileInputStream
|
||||
import java.util.Properties
|
||||
|
||||
project.pluginManager.apply("maven-publish")
|
||||
|
||||
val configProperties = Properties()
|
||||
val configFile = rootProject.file("config.properties")
|
||||
if (configFile.exists()) {
|
||||
FileInputStream(configFile).use { configProperties.load(it) }
|
||||
}
|
||||
|
||||
val versionBase = configProperties.getProperty("VERSION_NAME_BASE") ?: "0.0.0-SNAPSHOT"
|
||||
val appVersion = System.getenv("VERSION_NAME") ?: versionBase
|
||||
|
||||
project.version = appVersion
|
||||
project.group = "org.meshtastic"
|
||||
|
||||
if (project.version == "unspecified") {
|
||||
val props = Properties().apply {
|
||||
rootProject.file("config.properties").takeIf { it.exists() }?.inputStream()?.use { load(it) }
|
||||
}
|
||||
|
||||
project.version = System.getenv("VERSION")
|
||||
?: System.getenv("VERSION_NAME")
|
||||
?: props.getProperty("VERSION_NAME_BASE")
|
||||
?: "0.0.0-SNAPSHOT"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue