Skip to content

Commit

Permalink
Fix API publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Jul 16, 2024
1 parent 0bae945 commit c62fc78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build-121.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ allprojects {
credentials.username = System.getenv("REPO_USER")
credentials.password = System.getenv("REPO_PASSWORD")
}

publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}
}
}

0 comments on commit c62fc78

Please sign in to comment.