修改CI脚本
This commit is contained in:
parent
9b7205bd73
commit
c3347e4ad5
@ -12,16 +12,14 @@ jobs:
|
|||||||
permissions: write-all
|
permissions: write-all
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# 下载代码
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: stCarolas/setup-maven@v4
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
# 安装 JDK
|
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
# Maven 打包
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
# 将打包好的 Jar 包 放到 staging 文件夹
|
# 将打包好的 Jar 包 放到 staging 文件夹
|
||||||
|
Loading…
Reference in New Issue
Block a user