Skip to content

Commit 88809fc

Browse files
authored
Create maven.yml
1 parent 777743c commit 88809fc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/maven.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
on:
7+
push:
8+
tags:
9+
- 'v*.*.*'
10+
11+
jobs:
12+
build:
13+
# 运行环境
14+
runs-on: ubuntu-latest
15+
# 拉代码
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up JDK 8
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: '8'
22+
distribution: 'temurin'
23+
cache: maven
24+
# 编译
25+
- name: Build with Maven
26+
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)