File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [main, master, develop]
6+ pull_request :
7+ workflow_dispatch :
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+ permissions :
17+ contents : read
18+
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v6
22+
23+ - name : Set up JDK 21
24+ uses : actions/setup-java@v5
25+ with :
26+ distribution : temurin
27+ java-version : ' 21'
28+
29+ - name : Set up Gradle
30+ uses : gradle/actions/setup-gradle@v6
31+
32+ - name : Build
33+ run : |
34+ chmod +x ./gradlew
35+ ./gradlew shadowJar
36+
37+ - name : Collect JARs
38+ run : |
39+ mkdir -p jars
40+ find . -path "*/build/libs/*.jar" -type f \
41+ ! -name "*-sources.jar" \
42+ ! -name "*-javadoc.jar" \
43+ ! -name "*-tests.jar" \
44+ ! -name "*-plain.jar" \
45+ -exec cp {} jars/ \;
46+
47+ - name : Upload JARs
48+ uses : actions/upload-artifact@v6
49+ with :
50+ name : jars-${{ github.sha }}
51+ path : jars/*.jar
52+ if-no-files-found : error
53+ retention-days : 14
You can’t perform that action at this time.
0 commit comments