Files
rrryfoo f108e63b9c s
2023-04-12 06:11:27 +00:00

24 lines
783 B
YAML

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'