File tree Expand file tree Collapse file tree 4 files changed +134
-0
lines changed
Expand file tree Collapse file tree 4 files changed +134
-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 : [17]
14+ os : [ubuntu-latest, windows-latest]
15+ include :
16+ - jre : 11
17+ os : ubuntu-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+
11+ name : deploy
12+ on :
13+ workflow_dispatch :
14+ inputs :
15+ to_publish :
16+ description : ' What to publish'
17+ required : true
18+ default : ' all'
19+ type : choice
20+ options :
21+ - all
22+
23+ jobs :
24+ build :
25+ runs-on : ubuntu-latest
26+ name : deploy
27+ env :
28+ gh_token : ${{ secrets.GH_TOKEN }}
29+ ORG_GRADLE_PROJECT_nexus_user : ${{ secrets.NEXUS_USER }}
30+ ORG_GRADLE_PROJECT_nexus_pass64 : ${{ secrets.NEXUS_PASS64 }}
31+ ORG_GRADLE_PROJECT_gpg_passphrase : ${{ secrets.GPG_PASSPHRASE }}
32+ ORG_GRADLE_PROJECT_gpg_key64 : ${{ secrets.GPG_KEY64 }}
33+ steps :
34+ - uses : actions/checkout@v3
35+ - name : jdk 11
36+ uses : actions/setup-java@v3
37+ with :
38+ java-version : 11
39+ distribution : ' temurin'
40+ - name : gradle caching
41+ uses : gradle/gradle-build-action@v2
42+ with :
43+ gradle-home-cache-cleanup : true
44+ - name : git fetch origin main
45+ run : git fetch origin main
46+ - name : publish all
47+ if : " ${{ github.event.inputs.to_publish == 'all' }}"
48+ run : |
49+ ./gradlew :changelogPush -Prelease=true -Penable_publishing=true --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