File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,32 @@ name: publish alpha or beta
22on : [ workflow_dispatch ]
33
44jobs :
5+ build :
6+ strategy :
7+ matrix :
8+ java : [ 21 ]
9+ os : [ ubuntu-22.04 ]
10+ runs-on : ${{ matrix.os }}
11+ steps :
12+ - name : checkout repository
13+ uses : actions/checkout@v4
14+ - name : validate gradle wrapper
15+ uses : gradle/wrapper-validation-action@v1
16+ - name : setup jdk ${{ matrix.java }}
17+ uses : actions/setup-java@v4
18+ with :
19+ java-version : ${{ matrix.java }}
20+ distribution : ' microsoft'
21+ - name : build
22+ run : ./gradlew build
23+ - name : capture build artifacts
24+ if : ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
25+ uses : actions/upload-artifact@v4
26+ with :
27+ name : Artifacts
28+ path : build/libs/
529 publish :
30+ needs : [ build ]
631 strategy :
732 matrix :
833 java : [ 21 ]
Original file line number Diff line number Diff line change @@ -2,7 +2,32 @@ name: publish release
22on : [ workflow_dispatch ]
33
44jobs :
5+ build :
6+ strategy :
7+ matrix :
8+ java : [ 21 ]
9+ os : [ ubuntu-22.04 ]
10+ runs-on : ${{ matrix.os }}
11+ steps :
12+ - name : checkout repository
13+ uses : actions/checkout@v4
14+ - name : validate gradle wrapper
15+ uses : gradle/wrapper-validation-action@v1
16+ - name : setup jdk ${{ matrix.java }}
17+ uses : actions/setup-java@v4
18+ with :
19+ java-version : ${{ matrix.java }}
20+ distribution : ' microsoft'
21+ - name : build
22+ run : ./gradlew build
23+ - name : capture build artifacts
24+ if : ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
25+ uses : actions/upload-artifact@v4
26+ with :
27+ name : Artifacts
28+ path : build/libs/
529 publish :
30+ needs : [ build ]
631 strategy :
732 matrix :
833 java : [ 21 ]
You can’t perform that action at this time.
0 commit comments