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
|
||||
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:
|
||||
|
||||
@@ -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]"
|
||||
|
||||
Reference in New Issue
Block a user