File tree 4 files changed +52
-44
lines changed
4 files changed +52
-44
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
7
+
8
+ name : Java CI with Gradle
9
+ on : [ pull_request, push ]
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Set up JDK 21
16
+ uses : actions/setup-java@v4
17
+ with :
18
+ java-version : ' 21'
19
+ distribution : ' temurin'
20
+ - name : Build with Gradle
21
+ uses : gradle/actions/setup-gradle@v3
22
+ with :
23
+ arguments : shadowJar
24
+ - name : Upload a Build Artifact
25
+ uses : actions/upload-artifact@v4
26
+ with :
27
+ path : build/libs/*
28
+ if-no-files-found : error
Original file line number Diff line number Diff line change
1
+ name : Hangar Publish
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - prereleased
7
+ - released
8
+
9
+ jobs :
10
+ build :
11
+ env :
12
+ HANGAR_API_TOKEN : ${{ secrets.HANGAR_API_TOKEN }}
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - name : Set up JDK 21
17
+ uses : actions/setup-java@v4
18
+ with :
19
+ java-version : ' 21'
20
+ distribution : ' temurin'
21
+ - name : Publish with Gradle to Hangar
22
+ uses : gradle/actions/setup-gradle@v3
23
+ with :
24
+ arguments : publishAllPublicationsToHangar
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments