mirror of
https://github.com/DefectingCat/rua-list
synced 2025-07-15 16:51:31 +00:00
Update .gitlab-ci.yml file
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- release
|
||||||
|
|
||||||
build:pre:
|
build:pre:
|
||||||
stage: build
|
stage: build
|
||||||
@ -25,7 +26,7 @@ build:linux-gnu-amd64:
|
|||||||
- build:pre
|
- build:pre
|
||||||
script:
|
script:
|
||||||
- cargo build --release
|
- 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:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public/rua-list-x86_64-unknown-linux-gnu
|
- public/rua-list-x86_64-unknown-linux-gnu
|
||||||
@ -74,4 +75,15 @@ rustdoc:
|
|||||||
- cargo doc
|
- cargo doc
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
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"
|
||||||
|
Reference in New Issue
Block a user