Skip to content

Commit 8cdca8d

Browse files
committed
chore: update Maven Central credentials configuration in GitHub Actions workflow
1 parent 50b84b4 commit 8cdca8d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ jobs:
1818
with:
1919
java-version: '17'
2020
distribution: 'temurin'
21-
22-
- name: Configure Maven settings
23-
run: |
24-
mkdir -p $HOME/.m2
25-
echo "<settings><servers><server><id>central</id><username>${{ secrets.MAVEN_USERNAME }}</username><password>${{ secrets.MAVEN_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
21+
server-id: central
22+
server-username: MAVEN_USERNAME
23+
server-password: MAVEN_PASSWORD
2624

2725
- name: Build with Maven
26+
env:
27+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
28+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
2829
run: mvn clean install -DskipTests
2930

3031
- name: Set up Docker Buildx

0 commit comments

Comments
 (0)