From 5e39ee78ea73bb4b014af3f071672baa5218024e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=96=87=E8=B1=AA?= <980287353@qq.com> Date: Thu, 22 Dec 2022 17:26:13 +0800 Subject: [PATCH] publish 0.0.1 --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..37ef96e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +stages: + - deploy + - package + +deploy-jar: + stage: deploy + tags: + - hzkepai + rules: + - if: $CI_COMMIT_TAG + script: + - mvn clean deploy -Dmaven.test.skip -DaltDeploymentRepository=master::default::file:/usr/local/nginx/html/kepai-repo + - cd /usr/local/nginx/html/kepai-repo + - git checkout master + - git pull + - git add . + - git commit -m "deploy $CI_PROJECT_NAME $CI_COMMIT_TAG" + - git push origin master +