mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-26 02:19:19 +00:00
Fix API publish
This commit is contained in:
18
.github/workflows/build-121.yml
vendored
18
.github/workflows/build-121.yml
vendored
@@ -36,14 +36,16 @@ 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 }}
|
||||
# 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: Upload Leaf
|
||||
uses: actions/upload-artifact@main
|
||||
|
||||
Reference in New Issue
Block a user