Skip to content

Commit 6e00606

Browse files
authored
Merge pull request #1098 from hazendaz/master
Build Updates
2 parents d217e7d + eac3b17 commit 6e00606

File tree

8 files changed

+15
-7
lines changed

8 files changed

+15
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ name: Java CI
22

33
on: [workflow_dispatch, push, pull_request]
44

5+
permissions: read-all
6+
57
jobs:
68
test:
79
runs-on: ${{ matrix.os }}
810
strategy:
911
matrix:
1012
cache: [maven]
1113
distribution: [temurin]
12-
java: [17, 21, 23, 24-ea]
14+
java: [17, 21, 24, 25-ea]
1315
os: [macos-latest, ubuntu-latest, windows-latest]
1416
fail-fast: false
1517
max-parallel: 4

.github/workflows/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
uses: actions/setup-java@v4
3232
with:
3333
cache: maven
34-
java-version: 21
3534
distribution: 'temurin'
35+
java-version: 21
3636

3737
- name: Initialize CodeQL
3838
uses: github/codeql-action/init@v3

.github/workflows/coveralls.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Coveralls
22

33
on: [push, pull_request]
44

5+
permissions: read-all
6+
57
jobs:
68
coveralls:
79
if: github.repository_owner == 'mybatis'

.github/workflows/site.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- site
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
@@ -20,12 +23,10 @@ jobs:
2023
- name: Build site
2124
run: ./mvnw site site:stage -DskipTests -Dlicense.skip=true -B -V --no-transfer-progress --settings ./.mvn/settings.xml
2225
env:
23-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
2426
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2527
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
2628
- name: Deploy Site to gh-pages
2729
uses: JamesIves/github-pages-deploy-action@v4
2830
with:
2931
branch: gh-pages
3032
folder: target/staging
31-
ssh-key: ${{ secrets.DEPLOY_KEY }}

.github/workflows/sonar.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77

8+
permissions: read-all
9+
810
jobs:
911
build:
1012
if: github.repository_owner == 'mybatis'

.github/workflows/sonatype.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77

8+
permissions: read-all
9+
810
jobs:
911
build:
1012
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
<extension>
2121
<groupId>fr.jcgay.maven</groupId>
2222
<artifactId>maven-profiler</artifactId>
23-
<version>3.2</version>
23+
<version>3.3</version>
2424
</extension>
2525
</extensions>

.mvn/settings.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<servers>
2323
<!-- Used for sonatype snapshots and releases -->
2424
<server>
25-
<id>ossrh</id>
25+
<id>central</id>
2626
<username>${env.CI_DEPLOY_USERNAME}</username>
2727
<password>${env.CI_DEPLOY_PASSWORD}</password>
2828
</server>
@@ -39,7 +39,6 @@
3939
<!-- Github deployments (site) -->
4040
<server>
4141
<id>github</id>
42-
<username>${env.CI_DEPLOY_USERNAME}</username>
4342
<password>${env.GITHUB_TOKEN}</password>
4443
</server>
4544

0 commit comments

Comments
 (0)