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:
18
.github/workflows/build-1215.yml
vendored
18
.github/workflows/build-1215.yml
vendored
@@ -81,14 +81,11 @@ jobs:
|
|||||||
- name: Create MojmapPaperclipJar
|
- name: Create MojmapPaperclipJar
|
||||||
run: ./gradlew createMojmapPaperclipJar --stacktrace --parallel --no-daemon --no-configuration-cache
|
run: ./gradlew createMojmapPaperclipJar --stacktrace --parallel --no-daemon --no-configuration-cache
|
||||||
|
|
||||||
- name: Start API Publishing
|
- name: Publish API
|
||||||
id: publish-api
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
(
|
./gradlew :leaf-api:publish
|
||||||
./gradlew publish --parallel --max-workers=4 > publish_api_log.txt 2>&1
|
./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true
|
||||||
echo "API_PUBLISH_DONE=true" >> $GITHUB_ENV
|
|
||||||
) &
|
|
||||||
echo "PUBLISH_PID=$!" >> $GITHUB_ENV
|
|
||||||
env:
|
env:
|
||||||
REPO_USER: ${{ secrets.REPO_USER }}
|
REPO_USER: ${{ secrets.REPO_USER }}
|
||||||
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
|
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
|
||||||
@@ -112,13 +109,6 @@ jobs:
|
|||||||
GITHUB_REPO: ${{ github.repository }}
|
GITHUB_REPO: ${{ github.repository }}
|
||||||
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
|
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
|
- name: Release Leaf
|
||||||
uses: softprops/action-gh-release@master
|
uses: softprops/action-gh-release@master
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ if [ $IS_UNSUPPORTED = true ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Dev build warning
|
# Dev build warning
|
||||||
if [ "$IS_DEV" = true ]; then
|
if [ $IS_DEV = true ]; then
|
||||||
{
|
{
|
||||||
echo ""
|
echo ""
|
||||||
echo "> [!WARNING]"
|
echo "> [!WARNING]"
|
||||||
|
|||||||
Reference in New Issue
Block a user