Skip to content

Commit d03a8e3

Browse files
committed
Update .gitlab-ci.yml file
1 parent fb882d4 commit d03a8e3

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,21 @@ check-fmt:
2727
script: cargo fmt --check
2828
allow_failure: true
2929

30-
release-build:
31-
stage: release
32-
script: cargo build --release
33-
rules:
34-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_TITLE =~ /\d\.\d\.\d/
35-
3630
publish:
3731
stage: release
3832
script: cargo publish
39-
needs:
40-
- job: release-build
33+
rules:
34+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_TITLE =~ /\d\.\d\.\d/
4135
release:
4236
name: $CI_COMMIT_TITLE
4337
tag_name: '$CI_COMMIT_TITLE'
4438
ref: '$CI_COMMIT_TITLE'
4539
description: '$CI_COMMIT_TITLE - Automatically Released'
46-
rules:
47-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_TITLE =~ /\d\.\d\.\d/
4840

4941
benchmark:
5042
stage: benchmark
5143
script: cargo bench
52-
needs:
53-
- job: publish
5444
rules:
55-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_TITLE =~ /\d\.\d\.\d/
45+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_TITLE =~ /\d\.\d\.\d/
46+
needs:
47+
- job: publish

0 commit comments

Comments
 (0)