diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d2f0fc0 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +stages: # List of stages for jobs, and their order of execution + - build + - uploadRelease + +build-job: # This job runs in the build stage, which runs first. + stage: build + script: + - echo "Compiling..." + - gradle clean + - gradle fatJar + - echo "Compile complete." + +release-job: + stage: uploadRelease + image: registry.gitlab.com/gitlab-org/release-cli:latest + rules: + - if: $CI_COMMIT_TAG + when: never # Do not run this job when a tag is created manually + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + script: + - echo ":" + release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties + tag_name: '$CI_COMMIT_TAG' + description: '$CI_COMMIT_TAG' \ No newline at end of file