Skip to content

Commit

Permalink
updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
NonSwag committed May 1, 2024
1 parent 2ee6310 commit 7f3489d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '19'
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
uses: gradle/actions/setup-gradle@v3
with:
arguments: shadowJar
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
path: ./build/libs/*
if-no-files-found: error
if-no-files-found: error
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 19
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '19'
java-version: '21'
distribution: 'temurin'
- name: Publish with Gradle to Hangar
uses: gradle/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
arguments: publishAllPublicationsToHangar
arguments: publishAllPublicationsToHangar

0 comments on commit 7f3489d

Please sign in to comment.