Auto release & clean up project

This commit is contained in:
2026-09-11 16:00:40 +08:00
parent e47a0bff04
commit b2ea685a9a
5 files changed
+27 -14

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
name: Create Pre-release on Tag
on:
push:
tags:
- 'v*'
jobs:
create-prerelease:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create GitHub Pre-release
uses: softprops/action-gh-release@v2
with:
prerelease: true
generate_release_notes: true
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+1 -6
View File
@@ -5,11 +5,7 @@ plugins {
allprojects {
group = "cn.rtast.libmc"
val libVersion = getProperty("libVersion")
version = when (name) {
"protocol" -> getProperty("protocolVersion") + "-" + libVersion
else -> libVersion
}
version = getProperty("libVersion")
repositories {
mavenCentral()
@@ -20,7 +16,6 @@ subprojects {
pluginManager.apply("org.jetbrains.kotlin.multiplatform")
pluginManager.apply("maven-publish")
if (project.path.startsWith(":example")) return@subprojects
publishing {
repositories {
maven("https://repo.rtast.cn/packages") {
+1 -2
View File
@@ -4,5 +4,4 @@ kotlin.native.enableKlibsCrossCompilation=true
kotlin.mpp.enableCInteropCommonization=false
kotlin.daemon.jvmargs=-Xmx2048M
org.gradle.jvmargs=-Xmx3g -Dfile.encoding=UTF-8
libVersion=0.2.0
protocolVersion=26.2
libVersion=26.2-0.2.0
-5
View File
@@ -4,18 +4,13 @@ kotlinx-io = "0.9.1"
coroutines-test = "1.11.0"
kotlinx-coroutines = "1.11.0"
ktor-core = "3.5.2"
cryptography-core = "0.6.0"
[libraries]
kotlinx-io = { module = "org.jetbrains.kotlinx:kotlinx-io-core", version.ref = "kotlinx-io" }
ktor-network = { module = "io.ktor:ktor-network", version.ref = "ktor-core" }
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines-test" }
kotlinx-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
cryptography-provider-optimal = { module = "dev.whyoleg.cryptography:cryptography-provider-optimal", version.ref = "cryptography-core" }
cryptography-core = { module = "dev.whyoleg.cryptography:cryptography-core", version.ref = "cryptography-core" }
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor-core" }
ktor-client-darwin = { module = "io.ktor:ktor-client-darwin", version.ref = "ktor-core" }
ktor-client-winhttp = { module = "io.ktor:ktor-client-winhttp", version.ref = "ktor-core" }
ktor-client-curl = { module = "io.ktor:ktor-client-curl", version.ref = "ktor-core" }
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor-core" }
-1
View File
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("https://repo.rtast.cn/packages/")
}
}