Skip to content

Commit 29aca7b

Browse files
Attempting to publish to SNAPSHOT repository
1 parent 324c493 commit 29aca7b

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/maven.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,29 @@ jobs:
1313

1414
steps:
1515
- name: Check out Git repository
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

18-
- name: Set up JDK 1.8
19-
uses: actions/setup-java@v1
18+
- name: Set up JDK 11
19+
uses: actions/setup-java@v3
2020
with:
2121
java-version: 11
22+
distribution: 'zulu'
2223

2324
- name: Build With Maven
2425
env:
2526
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
2627
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
27-
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
28+
run: mvn -B verify #org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
2829

2930

3031
# Comment "Build With Maven" and uncomment the below when you want a snapshot build to be deployed
3132
# *********Don't forget to switch to Java 1.8 as well********
32-
# - name: Publish Maven snapshot
33-
# uses: samuelmeuli/action-maven-publish@v1
34-
# with:
35-
# gpg_private_key: ${{ secrets.gpg_private_key }}
36-
# gpg_passphrase: ${{ secrets.gpg_passphrase }}
37-
# nexus_username: ${{ secrets.nexus_username }}
38-
# nexus_password: ${{ secrets.nexus_password }}
39-
# maven_profiles: snapshot-release
33+
- name: Publish Maven snapshot
34+
uses: samuelmeuli/action-maven-publish@v1
35+
with:
36+
gpg_private_key: ${{ secrets.gpg_private_key }}
37+
gpg_passphrase: ${{ secrets.gpg_passphrase }}
38+
nexus_username: ${{ secrets.nexus_username }}
39+
nexus_password: ${{ secrets.nexus_password }}
40+
maven_profiles: snapshot-release
41+
maven_args: -B

0 commit comments

Comments
 (0)