9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-19 15:09:25 +00:00

Fix API publish

This commit is contained in:
Dreeam
2025-04-14 15:52:49 -04:00
parent 7eb3c4f5de
commit b09978b64b
2 changed files with 9 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ jobs:
~/.gradle/configuration-cache-*
.gradle/patchCache
.gradle/patched
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'buildSrc/**/*.kt', 'patches/**/*.patch') }}
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'patches/**/*.patch') }}
restore-keys: |
${{ runner.os }}-gradle-
@@ -60,10 +60,9 @@ jobs:
echo "org.gradle.caching=true" >> ~/.gradle/gradle.properties
echo "org.gradle.configuration-cache=true" >> ~/.gradle/gradle.properties
echo "org.gradle.configuration-cache.problems=warn" >> ~/.gradle/gradle.properties
echo "org.gradle.jvmargs=${{ env.GRADLE_MEMORY }} -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" >> ~/.gradle/gradle.properties
echo "org.gradle.jvmargs=${{ env.GRADLE_MEMORY }} -Dfile.encoding=UTF-8" >> ~/.gradle/gradle.properties
echo "org.gradle.parallel=true" >> ~/.gradle/gradle.properties
echo "org.gradle.daemon=true" >> ~/.gradle/gradle.properties
echo "kotlin.incremental=true" >> ~/.gradle/gradle.properties
- name: Apply patches
run: |
@@ -75,20 +74,16 @@ jobs:
--stacktrace --parallel \
--max-workers=$PARALLELISM \
--build-cache \
--no-configuration-cache \
--no-daemon
- name: Create MojmapPaperclipJar
run: ./gradlew createMojmapPaperclipJar --stacktrace --parallel --no-daemon --no-configuration-cache
run: ./gradlew createMojmapPaperclipJar --stacktrace --parallel --no-daemon
- name: Start API Publishing
id: publish-api
- name: Publish API
continue-on-error: true
run: |
(
./gradlew publish --parallel --max-workers=4 > publish_api_log.txt 2>&1
echo "API_PUBLISH_DONE=true" >> $GITHUB_ENV
) &
echo "PUBLISH_PID=$!" >> $GITHUB_ENV
./gradlew :leaf-api:publish
./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true
env:
REPO_USER: ${{ secrets.REPO_USER }}
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
@@ -112,13 +107,6 @@ jobs:
GITHUB_REPO: ${{ github.repository }}
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
- name: Wait for API Publishing
run: |
if ps -p ${{ env.PUBLISH_PID }} > /dev/null; then
wait ${{ env.PUBLISH_PID }} || true
fi
grep -i "error" publish_api_log.txt && echo "Found errors in log" || echo "No errors found"
- name: Release Leaf
uses: softprops/action-gh-release@master
with:

View File

@@ -50,7 +50,9 @@ subprojects {
events(TestLogEvent.STANDARD_OUT)
}
}
}
allprojects {
extensions.configure<PublishingExtension> {
repositories {
maven(leafMavenPublicUrl) {