diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml new file mode 100644 index 0000000..e6733de --- /dev/null +++ b/.github/workflows/prerelease.yml @@ -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 }} \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index fa14d9e..d84cfa6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") { diff --git a/gradle.properties b/gradle.properties index c9fc770..458ba38 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 543e4d7..7707dc5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" } diff --git a/settings.gradle.kts b/settings.gradle.kts index 96438ec..08767e5 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -2,7 +2,6 @@ pluginManagement { repositories { gradlePluginPortal() mavenCentral() - maven("https://repo.rtast.cn/packages/") } }