mirror of
https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
synced 2025-10-27 13:14:23 +08:00
- 实现了 build、tag、publish、reset 和 mirror等阶段的自动化流程 - 添加了 check 和 test 分支的构建和发布配置 - 更新了 build.gradle.kts 和 settings.gradle.kts 文件,调整了项目配置 - 新增 MdcContextElement 和 CoroutineMdcWebFilter 类,用于协程中的 MDC 上下文传播
25 lines
414 B
YAML
25 lines
414 B
YAML
stages:
|
|
- build
|
|
- publish
|
|
|
|
# 🧪 test 构建
|
|
build:
|
|
stage: build
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "test"'
|
|
script:
|
|
- ./gradlew clean build
|
|
tags:
|
|
- java
|
|
|
|
# 🧪 test 发布 SNAPSHOT 包(允许覆盖)
|
|
publish:
|
|
stage: publish
|
|
needs: ["build"]
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "test"'
|
|
script:
|
|
- ./gradlew publishMavenJavaPublicationToGitLabRepository
|
|
tags:
|
|
- java
|