File tree Expand file tree Collapse file tree 3 files changed +77
-47
lines changed
Expand file tree Collapse file tree 3 files changed +77
-47
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ workflow_dispatch :
11+
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.ref }}
14+ cancel-in-progress : true
15+
16+ jobs :
17+ build :
18+ name : Build with Java 17
19+ runs-on : ubuntu-latest
20+ timeout-minutes : 15
21+
22+ steps :
23+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24+ - uses : actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
25+ with :
26+ distribution : " adopt"
27+ java-version : 17
28+
29+ - name : Setup Gradle
30+ uses : gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4.4.2
31+
32+ - name : Build with Gradle
33+ run : ./gradlew build
34+
35+ - name : Upload a Build Artifact
36+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
37+ with :
38+ path : build/libs/
Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- push :
5- tags :
6- - *
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Plugin version. ex: x.x.x, x.x.x-SNAPSHOT'
8+ required : true
9+
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : true
713
814jobs :
9- build-and-release :
15+ release :
16+ name : Release
1017 runs-on : ubuntu-latest
11- permissions :
12- contents : write
18+ timeout-minutes : 3
1319 steps :
14- - name : Checkout
15- uses : actions/checkout@v5
16- - name : Setup Java 8
17- 20+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+ - uses : actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
1822 with :
19- distribution : " corretto"
20- java-version : " 8"
21- cache : " maven"
22- - name : Check java version
23- run : java -version
24- - name : Check maven version
25- run : mvn --version
23+ distribution : " adopt"
24+ java-version : 17
25+
26+ - name : Setup Gradle
27+ uses : gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4.4.2
28+
2629 - name : Build
27- run : mvn -B package
30+ run : ./gradlew build
31+ env :
32+ VERSION : ${{ github.event.inputs.version }}
33+
34+ - name : Upload a Build Artifact
35+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
36+ with :
37+ path : build/libs/
38+
39+ - name : Publish to azisaba repo
40+ run : ./gradlew publish
41+ env :
42+ VERSION : ${{ github.event.inputs.version }}
43+ REPO_USERNAME : ${{ secrets.REPO_USERNAME }}
44+ REPO_PASSWORD : ${{ secrets.REPO_PASSWORD }}
45+
2846 - name : Create release
29- uses :
softprops/[email protected] .2 47+ uses : softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # v2.3.3
3048 with :
31- draft : true
32- files : target /*.jar
49+ tag_name : ${{ github.event.inputs.version }}
50+ files : build/libs /*.jar
3351 generate_release_notes : true
You can’t perform that action at this time.
0 commit comments