Update maven.yml
This commit is contained in:
parent
69514738f7
commit
44136bb91f
11
.github/workflows/maven.yml
vendored
11
.github/workflows/maven.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Ubuntu CI
|
name: Java CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -15,10 +15,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.jdkversion }}
|
java-version: ${{ matrix.jdkversion }}
|
||||||
cache: 'maven'
|
cache: 'maven'
|
||||||
- name: Build
|
- name: 使用Maven构建
|
||||||
run: /usr/actions-runner/apache-maven-3.9.1/bin/mvn -V -B clean package --file pom.xml
|
run: /usr/actions-runner/apache-maven-3.9.1/bin/mvn -V -B clean package --file pom.xml
|
||||||
|
- name: 上传文件
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: 生成的文件
|
||||||
|
path: ${{ github.workspace }}/target/
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user