Skip to content

Commit b227131

Browse files
committed
Env var updates
1 parent 3db5dbb commit b227131

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
java-version: ${{ vars.JAVA_VERSION }}
2727
distribution: temurin
2828
server-id: central
29-
server-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
30-
server-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
29+
server-username: MAVEN_USERNAME
30+
server-password: MAVEN_PASSWORD
3131
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
32-
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
32+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3333
- name: Version
3434
run: |
3535
version=`git describe --abbrev=0 --tags` &&
@@ -39,6 +39,8 @@ jobs:
3939
run: |
4040
mvn deploy
4141
env:
42+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
43+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
4244
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
4345
- name: Notify on Failure
4446
uses: skitionek/notify-microsoft-teams@master

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@
136136
<extensions>true</extensions>
137137
<configuration>
138138
<publishingServerId>central</publishingServerId>
139+
<autoPublish>true</autoPublish>
140+
<waitUntil>published</waitUntil>
139141
</configuration>
140142
</plugin>
141143
</plugins>

0 commit comments

Comments
 (0)