diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e9877299b04bcc8248a025b0d5e7847454b3a0f1..a4ac2372ba82fdcd27493d49a741fc76d2c734d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,11 @@ image: python:latest -stages: # List of stages for jobs, and their order of execution - - build - +# Default stages +# .pre +# build +# test +# deploy +# .post build-job: # This job runs in the build stage, which runs first. stage: build @@ -11,5 +14,19 @@ build-job: # This job runs in the build stage, which runs first. - make build - echo "Compile complete." artifacts: + names: "FofbTool" paths: - dist/ + +release_job: + stage: release + image: registry.gitlab.com/gitlab-org/release-cli:latest + rules: + - if: $CI_COMMIT_TAG # Run this job when a tag is created manually + script: + - echo "Running the release job." + release: + tag_name: $CI_COMMIT_TAG + name: 'Release $CI_COMMIT_TAG' + description: 'Release created using the release-cli.' +