File tree Expand file tree Collapse file tree 6 files changed +40
-18
lines changed
Expand file tree Collapse file tree 6 files changed +40
-18
lines changed Original file line number Diff line number Diff line change 1616
1717 steps :
1818 - name : Checkout repository
19- uses : actions/checkout@v2
19+ uses : actions/checkout@v4
2020 with :
2121 # We must fetch at least the immediate parents so that if this is
2222 # a pull request then we can checkout the head.
Original file line number Diff line number Diff line change @@ -14,15 +14,16 @@ jobs:
1414 runs-on : ubuntu-latest
1515
1616 steps :
17- - uses : actions/checkout@v2
17+ - uses : actions/checkout@v4
1818 - name : Set up Python 3.10
1919 uses : actions/setup-python@v4
2020 with :
2121 python-version : ' 3.10'
2222 - name : Set up Java 8
23- uses : actions/setup-java@v1
23+ uses : actions/setup-java@v4
2424 with :
2525 java-version : 8
26+ distribution : ' temurin'
2627 - name : Run pre release script
2728 id : preRelease
2829 run : |
Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ jobs:
1313 java : [ 8 ]
1414
1515 steps :
16- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v4
1717 - name : Set up Java
18- uses : actions/setup-java@v1
18+ uses : actions/setup-java@v4
1919 with :
2020 java-version : ${{ matrix.java }}
21+ distribution : temurin
22+ server-id : central
23+ server-username : MAVEN_USERNAME
24+ server-password : MAVEN_PASSWORD
2125 - name : Cache local Maven repository
2226 uses : actions/cache@v2
2327 with :
2731 ${{ runner.os }}-maven-
2832 - name : Build with Maven
2933 run : |
30- mvn --no-transfer-progress -B install --file pom.xml
34+ mvn --no-transfer-progress -B install --file pom.xml
35+ env :
36+ MAVEN_USERNAME : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
37+ MAVEN_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ jobs:
1313 java : [ 8 ]
1414
1515 steps :
16- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v4
1717 - name : Set up Java
18- uses : actions/setup-java@v1
18+ uses : actions/setup-java@v4
1919 with :
2020 java-version : ${{ matrix.java }}
21- server-id : ossrh
21+ distribution : temurin
22+ server-id : central
2223 server-username : MAVEN_USERNAME
2324 server-password : MAVEN_PASSWORD
2425 - name : Cache local Maven repository
3132 - name : Build with Maven
3233 run : |
3334 mvn --no-transfer-progress -B install --file pom.xml
34- env :
35- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
36- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
35+ env :
36+ MAVEN_USERNAME : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
37+ MAVEN_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v4
1414 - uses : tibdex/github-app-token@v1
1515 id : generate-token
1616 with :
@@ -20,10 +20,14 @@ jobs:
2020 uses : actions/setup-python@v4
2121 with :
2222 python-version : ' 3.10'
23- - name : Set up Java 8
24- uses : actions/setup-java@v1
23+ - name : Set up Java
24+ uses : actions/setup-java@v4
2525 with :
2626 java-version : 8
27+ distribution : temurin
28+ server-id : central
29+ server-username : MAVEN_USERNAME
30+ server-password : MAVEN_PASSWORD
2731 - name : Run prepare release script
2832 id : prepare-release
2933 run : |
5155 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5256 SC_VERSION :
5357 SC_NEXT_VERSION :
58+ MAVEN_USERNAME : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
59+ MAVEN_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
5460
Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v4
1414 - uses : tibdex/github-app-token@v1
1515 id : generate-token
1616 with :
@@ -20,10 +20,14 @@ jobs:
2020 uses : actions/setup-python@v4
2121 with :
2222 python-version : ' 3.10'
23- - name : Set up Java 8
24- uses : actions/setup-java@v1
23+ - name : Set up Java
24+ uses : actions/setup-java@v4
2525 with :
2626 java-version : 8
27+ distribution : temurin
28+ server-id : central
29+ server-username : MAVEN_USERNAME
30+ server-password : MAVEN_PASSWORD
2731 - name : Run pre release script
2832 id : preRelease
2933 run : |
@@ -188,3 +192,6 @@ jobs:
188192 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
189193 SC_VERSION :
190194 SC_NEXT_VERSION :
195+ MAVEN_USERNAME : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
196+ MAVEN_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
197+
You can’t perform that action at this time.
0 commit comments