Auto release & clean up project
This commit is contained in:
5 files changed
+27
-14
No files matched your search
@@ -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
@@ -5,11 +5,7 @@ plugins {
|
|||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "cn.rtast.libmc"
|
group = "cn.rtast.libmc"
|
||||||
val libVersion = getProperty("libVersion")
|
version = getProperty("libVersion")
|
||||||
version = when (name) {
|
|
||||||
"protocol" -> getProperty("protocolVersion") + "-" + libVersion
|
|
||||||
else -> libVersion
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@@ -20,7 +16,6 @@ subprojects {
|
|||||||
pluginManager.apply("org.jetbrains.kotlin.multiplatform")
|
pluginManager.apply("org.jetbrains.kotlin.multiplatform")
|
||||||
pluginManager.apply("maven-publish")
|
pluginManager.apply("maven-publish")
|
||||||
|
|
||||||
if (project.path.startsWith(":example")) return@subprojects
|
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven("https://repo.rtast.cn/packages") {
|
maven("https://repo.rtast.cn/packages") {
|
||||||
|
|||||||
+1
-2
@@ -4,5 +4,4 @@ kotlin.native.enableKlibsCrossCompilation=true
|
|||||||
kotlin.mpp.enableCInteropCommonization=false
|
kotlin.mpp.enableCInteropCommonization=false
|
||||||
kotlin.daemon.jvmargs=-Xmx2048M
|
kotlin.daemon.jvmargs=-Xmx2048M
|
||||||
org.gradle.jvmargs=-Xmx3g -Dfile.encoding=UTF-8
|
org.gradle.jvmargs=-Xmx3g -Dfile.encoding=UTF-8
|
||||||
libVersion=0.2.0
|
libVersion=26.2-0.2.0
|
||||||
protocolVersion=26.2
|
|
||||||
@@ -4,18 +4,13 @@ kotlinx-io = "0.9.1"
|
|||||||
coroutines-test = "1.11.0"
|
coroutines-test = "1.11.0"
|
||||||
kotlinx-coroutines = "1.11.0"
|
kotlinx-coroutines = "1.11.0"
|
||||||
ktor-core = "3.5.2"
|
ktor-core = "3.5.2"
|
||||||
cryptography-core = "0.6.0"
|
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
kotlinx-io = { module = "org.jetbrains.kotlinx:kotlinx-io-core", version.ref = "kotlinx-io" }
|
kotlinx-io = { module = "org.jetbrains.kotlinx:kotlinx-io-core", version.ref = "kotlinx-io" }
|
||||||
ktor-network = { module = "io.ktor:ktor-network", version.ref = "ktor-core" }
|
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-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" }
|
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-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-curl = { module = "io.ktor:ktor-client-curl", version.ref = "ktor-core" }
|
||||||
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor-core" }
|
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor-core" }
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ pluginManagement {
|
|||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven("https://repo.rtast.cn/packages/")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user