Skip to content

Commit 95446e7

Browse files
committed
ci: add maven workflow for main branch
1 parent 3027ac3 commit 95446e7

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/maven.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-and-deploy:
12+
runs-on: ubuntu-latest
13+
environment: prod
14+
15+
steps:
16+
# Checkout the repository
17+
- uses: actions/checkout@v4
18+
19+
# Set up JDK 21
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '21'
24+
distribution: 'temurin'
25+
cache: maven
26+
cache-dependency-path: pom.xml
27+
28+
# Build with Maven
29+
- name: Compile with Maven
30+
run: mvn compile -f pom.xml
31+

0 commit comments

Comments
 (0)