1 Star 2 Fork 0

徐晓伟/spring-boot-starter-wechat-offiaccount

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitlab-ci.yml 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
徐晓伟 提交于 2023-12-11 10:51 . :construction_worker:sync: 优化嵌入
stages:
- main
- sync
main:
stage: main
image: maven:3.6.3-jdk-8
variables:
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
cache:
paths:
- .m2/repository
script:
- GPG_FILE=`find / -name xuxiaowei_0x30F97859_SECRET`
- echo $GPG_FILE
- gpg --import $GPG_FILE
- sed -i "s#</servers>#<server><id>ossrh</id><username>$ossrh_user</username><password>$ossrh_pass</password></server>&#" settings.xml
- git --version
- NAME=`mvn help:evaluate -Dexpression=project.name -q -DforceStdout -s settings.xml`
- VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout -s settings.xml`
- PACKAGING=`mvn help:evaluate -Dexpression=project.packaging -q -DforceStdout -s settings.xml`
- echo 名称:$NAME
- echo 版本:$VERSION
- echo 包:$PACKAGING
- echo 常量网址:https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
- echo 当前分支:$CI_COMMIT_BRANCH
- echo 主分支:$CI_DEFAULT_BRANCH
- echo 项目路径:$CI_PROJECT_DIR
- mvn clean -U package source:jar javadoc:jar deploy -Pgpg -DskipTests -s settings.xml && echo 发布完成
artifacts:
paths:
- target/spring-boot-starter-wechat-offiaccount-*
rules:
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "next"
changes:
- ".mvn/**/*"
- "src/**/*"
- ".gitlab-ci.yml"
- "mvnw"
- "mvnw.cmd"
- "pom.xml"
- "settings.xml"
- "!README.md"
include:
- project: xuxiaowei-com-cn/spring-boot-starter
file: sync.yml
ref: main
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuxiaowei-com-cn/spring-boot-starter-wechat-offiaccount.git
git@gitee.com:xuxiaowei-com-cn/spring-boot-starter-wechat-offiaccount.git
xuxiaowei-com-cn
spring-boot-starter-wechat-offiaccount
spring-boot-starter-wechat-offiaccount
main

搜索帮助