From aba0995736d94ac4c19d33108b881d76f1387a5a Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Mon, 23 Sep 2024 13:28:22 -0400 Subject: [PATCH] Update workflow to publish API automatically --- .github/workflows/build-1211.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-1211.yml b/.github/workflows/build-1211.yml index 3f32ac115..fcfd7ec00 100644 --- a/.github/workflows/build-1211.yml +++ b/.github/workflows/build-1211.yml @@ -36,16 +36,15 @@ jobs: mv build/libs/leaf-paperclip-1.21.1-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21.1-mojmap.jar mv build/libs/leaf-paperclip-1.21.1-R0.1-SNAPSHOT-reobf.jar ./leaf-1.21.1-reobf.jar -# Publish manually instead of using workflow -# - name: Publish API -# if: github.event_name != 'pull_request' -# run: | -# echo "REPO_USER=${{ secrets.REPO_USER }}" >> $GITHUB_ENV -# export REPO_USER=${{ secrets.REPO_USER }} -# echo "REPO_PASSWORD=${{ secrets.REPO_PASSWORD }}" >> $GITHUB_ENV -# export REPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -# ./gradlew :leaf-api:publish -# ./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true + - name: Publish API + if: github.event_name != 'pull_request' + run: | + echo "REPO_USER=${{ secrets.REPO_USER }}" >> $GITHUB_ENV + export REPO_USER=${{ secrets.REPO_USER }} + echo "REPO_PASSWORD=${{ secrets.REPO_PASSWORD }}" >> $GITHUB_ENV + export REPO_PASSWORD=${{ secrets.REPO_PASSWORD }} + ./gradlew :leaf-api:publish + ./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true - name: Upload Leaf uses: actions/upload-artifact@main