Skip to content

Merge pull request #6 from PSMRI/feature/update/script #21

Merge pull request #6 from PSMRI/feature/update/script

Merge pull request #6 from PSMRI/feature/update/script #21

Workflow file for this run

name: Package
on:
push:
branches: [ "main","develop"]
paths-ignore:
- target/**
pull_request:
branches: [ "main","develop" ]
paths-ignore:
- target/**
env:
ENV_VAR: local
jobs:
Package-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'adopt'
- name: Build with Maven
run: mvn clean install -DENV_VAR=${{env.ENV_VAR}}
- name: Build WAR file
run: mvn -B package --file pom.xml
- name: Upload WAR file as artifact
uses: actions/upload-artifact@v3
with:
name: Common-API
path: target/Amrit-DB-1.0.0.war