-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 753 Bytes
/
Copy pathCIMavenProject.yml
File metadata and controls
30 lines (27 loc) · 753 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
name: CI Maven Project
on:
workflow_dispatch:
inputs:
TARGET_ENVIRONMENT:
type: environment
default: dev
jobs:
CI_Non-conterization_build:
runs-on: ubuntu-latest
environment: ${{inputs.TARGET_ENVIRONMENT}}
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup Java JDK
uses: actions/setup-java@v3.14.1
with:
java-version: 17
distribution: microsoft
- name: Build using Maven
run: mvn --batch-mode --update-snapshots verify
- run: mkdir staging && cp target/*.jar staging
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.6.2
with:
name: Package
path: staging