mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-30 20:29:10 +00:00
add api publishing
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
|
||||
- name: Setup JDK 17
|
||||
- name: Setup JDK 21
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: temurin
|
||||
@@ -41,6 +41,10 @@ jobs:
|
||||
- name: Create Mojmap Jar
|
||||
run: ./gradlew createMojmapPaperclipJar --stacktrace
|
||||
|
||||
- name: Publish API
|
||||
continue-on-error: true
|
||||
run: ./gradlew publish -PdivinemcUsername=${{ secrets.REPO_USERNAME }} -PdivinemcPassword=${{ secrets.REPO_SECRET }}
|
||||
|
||||
- name: Upload Artifacts
|
||||
if: env.debug == 'true' || github.ref_name != env.branch
|
||||
uses: actions/upload-artifact@main
|
||||
|
||||
Reference in New Issue
Block a user