Update .gitlab-ci.yml file

This commit is contained in:
xfy xfy
2023-05-09 09:17:39 +00:00
parent e4f2216d23
commit 7ca9b02370

View File

@ -1,5 +1,6 @@
stages:
- build
- release
build:pre:
stage: build
@ -25,7 +26,7 @@ build:linux-gnu-amd64:
- build:pre
script:
- cargo build --release
- mv target/release/rua-list public/rua-list-x86_64-unknown-linux-gnu
- mv target/release/rua-list public/rua-list-x86_64-unknown-linux-gnu-v$CI_COMMIT_TAG
artifacts:
paths:
- public/rua-list-x86_64-unknown-linux-gnu
@ -74,4 +75,15 @@ rustdoc:
- cargo doc
artifacts:
paths:
- target/doc
- target/doc
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
script:
- echo "running release_job"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: "$CI_COMMIT_TAG"
description: "$CI_COMMIT_TAG"