Skip to content

Update references from nexus.b2i.sg to artifacts.b2ihealthcare.com #30

Update references from nexus.b2i.sg to artifacts.b2ihealthcare.com

Update references from nexus.b2i.sg to artifacts.b2ihealthcare.com #30

Workflow file for this run

name: Java CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Set up JDK 17
uses: actions/setup-java@v4.0.0
with:
distribution: temurin
java-version: 17
- name: Cache Maven Dependencies (~/.m2/repository)
uses: actions/cache@v3.3.2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-:
- name: Setup Maven settings.xml
uses: whelk-io/maven-settings-xml-action@v21
with:
servers: '[{ "id": "nexus_deployment", "username": "${env.NEXUS_DEPLOYMENT_USER}", "password": "${env.NEXUS_DEPLOYMENT_PASS}" }]'
- name: Build Packages
run: ./mvnw -ntp clean verify
if: github.ref != 'refs/heads/main'
- name: Build and Deploy Packages
run: ./mvnw -ntp clean deploy
if: github.ref == 'refs/heads/main'
env:
NEXUS_DEPLOYMENT_USER: ${{ secrets.NEXUS_DEPLOYMENT_USER }}
NEXUS_DEPLOYMENT_PASS: ${{ secrets.NEXUS_DEPLOYMENT_PASS }}