38 lines
872 B
YAML
38 lines
872 B
YAML
name: Deploy AIDA Dev (dev/3.1_release_merge_MS)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev/3.1_release_merge_MS
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: java21
|
|
|
|
env:
|
|
REMOTE_DEPLOY_PATH: /workspace/workspace_aida/DevelopVersion/develop-MS-version-aida-back-test
|
|
|
|
steps:
|
|
- name: Checkout 代码
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: dev/3.1_release_merge_MS
|
|
|
|
- name: 缓存 Maven 依赖
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: ~/.m2/repository
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-maven-
|
|
|
|
- name: 构建项目
|
|
run: |
|
|
java -version
|
|
mvn -v
|
|
mvn clean package -DskipTests
|
|
|
|
- name: 查看构建结果
|
|
run: ls -lh target/*.jar
|
|
|