Browse Source
Update Actions workflow
- Uses v4 of checkout, setup-java,and upload-artifact
- Sets up Java 21
pull/58/head
Ike Johnson-Woods
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
5 deletions
-
.github/workflows/maven.yml
|
|
@ -9,13 +9,13 @@ jobs: |
|
|
|
name: Build |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
|
|
|
- name: Set up JDK 17 |
|
|
|
uses: actions/setup-java@v3 |
|
|
|
- name: Set up JDK 21 |
|
|
|
uses: actions/setup-java@v4 |
|
|
|
with: |
|
|
|
distribution: 'temurin' |
|
|
|
java-version: '17' |
|
|
|
java-version: '21' |
|
|
|
cache: 'maven' |
|
|
|
|
|
|
|
- name: Build with Maven |
|
|
@ -30,7 +30,7 @@ jobs: |
|
|
|
run: echo "jarname=$(find target/ -name "keycloak-discord-*.jar" -not -name "*slim*" -not -name "*source*" | sed 's:.*/::')" >> $GITHUB_OUTPUT |
|
|
|
|
|
|
|
- name: Upload artifact |
|
|
|
uses: actions/upload-artifact@v3 |
|
|
|
uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
name: ${{ steps.jarname.outputs.jarname }} |
|
|
|
path: ${{ steps.jar.outputs.jarfile }} |