Skip to content

Commit 9c18f08

Browse files
committed
Update checkout and setup-java version
Signed-off-by: Rafael Luis Ibasco <[email protected]>
1 parent 29a5cb0 commit 9c18f08

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
matrix:
2323
java: [ '8' ]
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626
- name: Setup Java JDK
27-
uses: actions/setup-java@v2
27+
uses: actions/setup-java@v3
2828
with:
2929
distribution: 'temurin'
3030
java-version: ${{ matrix.java }}
@@ -41,10 +41,10 @@ jobs:
4141
run: mvn verify
4242

4343
- name: Set up for Sonatype
44-
uses: actions/setup-java@v2
44+
uses: actions/setup-java@v3
4545
with: # running setup-java again overwrites the settings.xml
4646
distribution: 'temurin'
47-
java-version: '8'
47+
java-version: ${{ matrix.java }}
4848
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
4949
server-username: SONATYPE_USERNAME # env variable for username in deploy
5050
server-password: SONATYPE_PASSWORD # env variable for token in deploy
@@ -54,7 +54,7 @@ jobs:
5454

5555
- name: Publish to Sonatype (Snapshots)
5656
if: github.event_name != 'pull_request' && github.event_name != 'release'
57-
run: mvn --batch-mode deploy -P'deploy-sonatype' -DskipTests=true -Dmaven.javadoc.skip=true
57+
run: mvn --batch-mode deploy -DskipTests=true
5858
env:
5959
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
6060
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
matrix:
1313
java: [ '8' ]
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- name: Setup Java JDK
17-
uses: actions/setup-java@v2
17+
uses: actions/setup-java@v3
1818
with:
1919
distribution: 'temurin'
2020
check-latest: true
@@ -29,7 +29,7 @@ jobs:
2929
run: echo ${{ steps.extract_branch.outputs.branch }}
3030

3131
- name: Build Java Project
32-
run: mvn install -P'release' -Dchangelist= -Dlicense.skipUpdateLicense=true -DskipTests=true -B -V --file pom.xml
32+
run: mvn install -P'release' -Dchangelist= -DskipTests=true -B -V --file pom.xml
3333

3434
- name: Unit Tests
3535
run: mvn test
@@ -38,7 +38,7 @@ jobs:
3838
run: mvn verify
3939

4040
- name: Set up for Sonatype
41-
uses: actions/setup-java@v2
41+
uses: actions/setup-java@v3
4242
with: # running setup-java again overwrites the settings.xml
4343
distribution: 'temurin'
4444
check-latest: true

.github/workflows/site.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
matrix:
1313
java: [ '8' ]
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- name: Setup Java JDK
17-
uses: actions/setup-java@v2
17+
uses: actions/setup-java@v3
1818
with:
1919
distribution: 'temurin'
2020
java-version: ${{ matrix.java }}

0 commit comments

Comments
 (0)