forked from PSMRI/Admin-API
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 793 Bytes
/
package.yml
File metadata and controls
41 lines (32 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Package
on:
push:
branches: [ "develop"]
paths-ignore:
- target/**
pull_request:
branches: [ "develop" ]
paths-ignore:
- target/**
env:
ENV_VAR: test
jobs:
Package-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
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@v2
with:
name: Admin-API
path: target/adminapi-v1.0.war