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 12:18:08 -04:00
parent 7ac4a1bd0a
commit b700aec51a
2 changed files with 5 additions and 15 deletions

View File

@@ -81,14 +81,11 @@ jobs:
- name: Create MojmapPaperclipJar
run: ./gradlew createMojmapPaperclipJar --stacktrace --parallel --no-daemon --no-configuration-cache
- 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 +109,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

@@ -88,7 +88,7 @@ if [ $IS_UNSUPPORTED = true ]; then
fi
# Dev build warning
if [ "$IS_DEV" = true ]; then
if [ $IS_DEV = true ]; then
{
echo ""
echo "> [!WARNING]"