9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-28 11:29:11 +00:00

Publish API

This commit is contained in:
Dreeam
2024-07-17 01:30:22 +08:00
parent 6f90851f57
commit 0bae9452af
3 changed files with 31 additions and 13 deletions

View File

@@ -36,14 +36,14 @@ jobs:
mv build/libs/leaf-paperclip-1.21-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21-mojmap.jar
mv build/libs/leaf-paperclip-1.21-R0.1-SNAPSHOT-reobf.jar ./leaf-1.21-reobf.jar
# - name: Publish API
# if: github.event_name != 'pull_request'
# run: |
# ./gradlew :leaf-api:publish
# ./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true
# env:
# ORG_GRADLE_PROJECT_leafUsername: ${{ secrets.REPO_USER }}
# ORG_GRADLE_PROJECT_leafPassword: ${{ secrets.REPO_PASSWORD }}
- name: Publish API
if: github.event_name != 'pull_request'
run: |
./gradlew :leaf-api:publish
./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true
env:
ORG_GRADLE_PROJECT_leafUsername: ${{ secrets.REPO_USER }}
ORG_GRADLE_PROJECT_leafPassword: ${{ secrets.REPO_PASSWORD }}
- name: Upload Leaf
uses: actions/upload-artifact@main