Skip to content

Commit a45da11

Browse files
authored
Update maven.yml
Configure snapshot credentials on master build
1 parent 132478a commit a45da11

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/maven.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ on:
77
- 'docs/**'
88
- '.circleci/**'
99
- '.github/**'
10+
11+
env:
12+
OSS_USERNAME: ${{ secrets.OSS_USERNAME }}
13+
OSS_PASSWORD: ${{ secrets.OSS_PASSWORD }}
14+
1015
jobs:
1116
build:
17+
name: Build on JDK ${{ matrix.java_version }}
1218
runs-on: 'ubuntu-latest'
1319
strategy:
1420
fail-fast: false
@@ -22,6 +28,10 @@ jobs:
2228
uses: actions/setup-java@v1
2329
with:
2430
java-version: ${{ matrix.java_version }}
31+
# Value of the distributionManagement/repository/id field of the pom.xml
32+
server-id: sonatype-nexus-snapshots
33+
server-username: OSS_USERNAME
34+
server-password: OSS_PASSWORD
2535
- uses: actions/cache@v2.1.2
2636
with:
2737
path: ~/.m2/repository

0 commit comments

Comments
 (0)