devops各步骤使用中文
Some checks failed
Build and Deploy Spring Boot / build-and-deploy (push) Failing after 1s
Some checks failed
Build and Deploy Spring Boot / build-and-deploy (push) Failing after 1s
This commit is contained in:
parent
bd339b928f
commit
07c87029db
@ -11,22 +11,22 @@ jobs:
|
||||
|
||||
steps:
|
||||
# 检出代码
|
||||
- name: 拉取代码
|
||||
- name: "拉取代码"
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# 设置JDK环境
|
||||
- name: 部署jdk8
|
||||
- name: "部署jdk8"
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'adopt'
|
||||
# 设置maven环境
|
||||
- name: 部署maven
|
||||
- name: "部署maven"
|
||||
uses: stCarolas/setup-maven@v4.5
|
||||
with:
|
||||
maven-version: '3.8.6'
|
||||
# 缓存Maven依赖
|
||||
- name: 设置maven缓存
|
||||
- name: "设置maven缓存"
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2
|
||||
@ -34,11 +34,11 @@ jobs:
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
|
||||
# 使用Maven打包
|
||||
- name: 打包
|
||||
- name: "打包"
|
||||
run: mvn clean package -DskipTests
|
||||
|
||||
# 将JAR包传输到服务器部署
|
||||
- name: 推送
|
||||
- name: "推送"
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
host: ${{ secrets.SERVER_HOST }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user