Skip to content

Commit

Permalink
Build on JDK 21 and upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kale-Ko committed Oct 19, 2024
1 parent 30160ca commit dc8a87f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,24 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 21
distribution: temurin

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build
run: ./gradlew build --warning-mode all
run: ./gradlew build
env:
MAVEN_TYPE: snapshot
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
GH_PACKAGES_USER: ${{ secrets.GH_PACKAGES_USER }}
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}

- name: Upload Builds
uses: actions/upload-artifact@v4
with:
name: builds
path: builds/libs/*.jar
compression-level: 9
16 changes: 15 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 21
distribution: temurin

- name: Setup Gradle
Expand All @@ -33,6 +33,20 @@ jobs:
GH_PACKAGES_USER: ${{ secrets.GH_PACKAGES_USER }}
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}

- name: Upload Builds
uses: actions/upload-artifact@v4
with:
name: builds
path: builds/libs/*.jar
compression-level: 9

- name: Upload JavaDocs
uses: actions/upload-artifact@v4
with:
name: javadocs
path: builds/docs/javadoc/
compression-level: 9

- name: Publish
run: ./gradlew publish
env:
Expand Down

0 comments on commit dc8a87f

Please sign in to comment.