s
This commit is contained in:
@@ -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'
|
||||||
Reference in New Issue
Block a user