-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAH-1386 | Refactor build publish workflow to deploy it in nexus
Co-authored-by: Abinaya U <[email protected]> Co-authored-by: Arjun G <[email protected]> Co-authored-by: Kavitha S <[email protected]> Co-authored-by: MOHANKUMAR T <[email protected]> Co-authored-by: Umair Fayaz <[email protected]>
- Loading branch information
1 parent
0e24cb3
commit 72b09d3
Showing
4 changed files
with
48 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build and Publish package | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build-publish-package: | ||
name: Build and Publish package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: nexus-sonatype | ||
server-username: NEXUS_USERNAME | ||
server-password: NEXUS_PASSWORD | ||
- name: Build and deploy with Maven | ||
run: mvn --no-transfer-progress clean -U deploy | ||
env: | ||
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | ||
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: Validate PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-test-package: | ||
name: Build and Package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Build and test with Maven | ||
run: | | ||
mvn clean install | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Build and Package with Maven | ||
run: mvn --no-transfer-progress clean -U install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters