Skip to content

Commit

Permalink
Attempting to publish to SNAPSHOT repository
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbethancourt committed Jun 29, 2024
1 parent 324c493 commit 29aca7b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,29 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu'

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


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

0 comments on commit 29aca7b

Please sign in to comment.