split release job into two

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2024-02-21 11:03:45 -08:00
parent a09d905598
commit 13219e1d5f
5 changed files with 13 additions and 3 deletions

View file

@ -33,7 +33,6 @@ userlib-tests:
prepare-release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- cargo build -F implicit-load --release
- |
@ -53,6 +52,19 @@ prepare-release:
artifacts:
paths:
- flesh-$CI_COMMIT_TAG.tar.gz
- VERSION
- ID
rules:
- if: '$CI_COMMIT_TAG =~ "/^v\d+.\d+.\d+/"'
create-release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
needs:
- job: prepare-release
artifacts: true
script:
- echo "running job for release!"
rules:
- if: '$CI_COMMIT_TAG =~ "/^v\d+.\d+.\d+/"'
release: