File tree Expand file tree Collapse file tree 4 files changed +136
-0
lines changed Expand file tree Collapse file tree 4 files changed +136
-0
lines changed Original file line number Diff line number Diff line change 1+ name : changelogPrint
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ name : changelogPrint
11+ steps :
12+ - uses : actions/checkout@v3
13+ - name : jdk 11
14+ uses : actions/setup-java@v3
15+ with :
16+ java-version : 11
17+ distribution : ' temurin'
18+ - name : gradle caching
19+ uses : gradle/gradle-build-action@v2
20+ with :
21+ gradle-home-cache-cleanup : true
22+ - run : ./gradlew changelogPrint
Original file line number Diff line number Diff line change 1+ on :
2+ pull_request :
3+ push :
4+ branches : [main]
5+ concurrency :
6+ group : ${{ github.workflow }}-${{ github.ref }}
7+ cancel-in-progress : true
8+ jobs :
9+ build :
10+ strategy :
11+ fail-fast : false
12+ matrix :
13+ jre : [11, 17]
14+ os : [ubuntu-latest]
15+ include :
16+ - jre : 17
17+ os : windows-latest
18+ runs-on : ${{ matrix.os }}
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v3
22+ - name : Install JDK ${{ matrix.jre }}
23+ uses : actions/setup-java@v3
24+ with :
25+ distribution : " temurin"
26+ java-version : ${{ matrix.jre }}
27+ - name : gradle caching
28+ uses : gradle/gradle-build-action@v2
29+ with :
30+ gradle-home-cache-cleanup : true
31+ - name : git fetch origin main
32+ run : git fetch origin main
33+ - name : gradlew build
34+ run : ./gradlew build
35+ - name : junit result
36+ uses : mikepenz/action-junit-report@v3
37+ if : always() # always run even if the previous step fails
38+ with :
39+ check_name : JUnit ${{ matrix.jre }} ${{ matrix.os }}
40+ report_paths : ' */build/test-results/*/TEST-*.xml'
Original file line number Diff line number Diff line change 1+ # GH_TOKEN
2+ # NEXUS_USER
3+ # NEXUS_PASS64 (base64 NOTE: `base64` and `openssl base64` failed, had to use Java
4+ # byte[] data = "{{password}}".getBytes(StandardCharsets.UTF_8);
5+ # String encoded = new String(Base64.getEncoder().encode(data), StandardCharsets.UTF_8);
6+ # System.out.println(encoded);
7+ # GPG_PASSPHRASE
8+ # GPG_KEY64 (base64)
9+ # gpg --export-secret-keys --armor KEY_ID | openssl base64 | pbcopy
10+ # GRADLE_KEY
11+ # GRADLE_SECRET
12+
13+ name : deploy
14+ on :
15+ workflow_dispatch :
16+ inputs :
17+ to_publish :
18+ description : ' What to publish'
19+ required : true
20+ default : ' all'
21+ type : choice
22+ options :
23+ - all
24+
25+ jobs :
26+ build :
27+ runs-on : ubuntu-latest
28+ name : deploy
29+ env :
30+ gh_token : ${{ secrets.GH_TOKEN }}
31+ ORG_GRADLE_PROJECT_nexus_user : ${{ secrets.NEXUS_USER }}
32+ ORG_GRADLE_PROJECT_nexus_pass64 : ${{ secrets.NEXUS_PASS64 }}
33+ ORG_GRADLE_PROJECT_gpg_passphrase : ${{ secrets.GPG_PASSPHRASE }}
34+ ORG_GRADLE_PROJECT_gpg_key64 : ${{ secrets.GPG_KEY64 }}
35+ steps :
36+ - uses : actions/checkout@v3
37+ - name : jdk 11
38+ uses : actions/setup-java@v3
39+ with :
40+ java-version : 11
41+ distribution : ' temurin'
42+ - name : gradle caching
43+ uses : gradle/gradle-build-action@v2
44+ with :
45+ gradle-home-cache-cleanup : true
46+ - name : git fetch origin main
47+ run : git fetch origin main
48+ - name : publish all
49+ if : " ${{ github.event.inputs.to_publish == 'all' }}"
50+ run : |
51+ ./gradlew :changelogPush -Prelease=true -Penable_publishing=true -Pgradle.publish.key=${{ secrets.GRADLE_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_SECRET }} --stacktrace --warning-mode all
Original file line number Diff line number Diff line change 1+ name : " Validate Gradle Wrapper"
2+ on :
3+ push :
4+ paths :
5+ - ' gradlew'
6+ - ' gradlew.bat'
7+ - ' gradle/wrapper/'
8+ pull_request :
9+ paths :
10+ - ' gradlew'
11+ - ' gradlew.bat'
12+ - ' gradle/wrapper/'
13+
14+ permissions :
15+ contents : read
16+
17+ jobs :
18+ validation :
19+ name : " Validation"
20+ runs-on : ubuntu-latest
21+ steps :
22+ - uses : actions/checkout@v3
23+ - uses : gradle/wrapper-validation-action@v1
You can’t perform that action at this time.
0 commit comments