aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-08-06 20:24:17 +0900
committerGitHub <noreply@github.com>2022-08-06 20:24:17 +0900
commit107b4f70029e89873e7b3d1901c0d4528db36291 (patch)
tree7aa72a253a7313e4432dd91a4d616108027840fb
parentc79dc3cf7b3750aa03fb33a07b4af044b37f9407 (diff)
downloadOneConfig-107b4f70029e89873e7b3d1901c0d4528db36291.tar.gz
OneConfig-107b4f70029e89873e7b3d1901c0d4528db36291.tar.bz2
OneConfig-107b4f70029e89873e7b3d1901c0d4528db36291.zip
fix ci (#82)
* Update release.yml * maybe fix ci?
-rw-r--r--.github/workflows/release.yml2
-rw-r--r--settings.gradle.kts22
2 files changed, 15 insertions, 9 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3bef8b3..4defbcc 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -49,7 +49,7 @@ jobs:
id: version
- name: Publish
- run: ./gradlew platform:publishAllPublicationsToReleasesRepository -Pmod_minor_version=${{ steps.version.outputs.VERSION_NUMBER }} -PreleasesUsername=${{ secrets.MAVEN_NAME }} -PreleasesPassword=${{ secrets.MAVEN_TOKEN }} --no-daemon
+ run: ./gradlew publish -Pmod_minor_version=${{ steps.version.outputs.VERSION_NUMBER }} -PreleasesUsername=${{ secrets.MAVEN_NAME }} -PreleasesPassword=${{ secrets.MAVEN_TOKEN }} -DBUILDING_CI=true --no-daemon
- name: Upload Build Artifacts
uses: actions/upload-artifact@v2
diff --git a/settings.gradle.kts b/settings.gradle.kts
index e5fe21b..b2d3b25 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -23,12 +23,16 @@ pluginManagement {
val mod_name: String by settings
+val buildingCi = System.getProperty("BUILDING_CI") == "true"
+
rootProject.name = mod_name
-include(":lwjgl")
-project(":lwjgl").apply {
- projectDir = file("lwjgl/")
- buildFileName = "root.gradle.kts"
+if (!buildingCi) {
+ include(":lwjgl")
+ project(":lwjgl").apply {
+ projectDir = file("lwjgl/")
+ buildFileName = "root.gradle.kts"
+ }
}
include(":platform")
@@ -44,13 +48,15 @@ listOf(
"1.16.2-fabric"
).forEach { version ->
include(":platform:$version")
- include(":lwjgl:$version")
project(":platform:$version").apply {
projectDir = file("versions/$version")
buildFileName = "../build.gradle.kts"
}
- project(":lwjgl:$version").apply {
- projectDir = file("lwjgl/$version")
- buildFileName = "../build.gradle.kts"
+ if (!buildingCi) {
+ include(":lwjgl:$version")
+ project(":lwjgl:$version").apply {
+ projectDir = file("lwjgl/$version")
+ buildFileName = "../build.gradle.kts"
+ }
}
}