Files
aida_back/.gitea/workflows/test.yaml

39 lines
980 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 # 如有自托管 runner 可改成对应 label
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
# Maven 官方缓存Gitea 推荐)
- 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