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:
|
||||
- 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
|
||||
@ -75,3 +76,14 @@ rustdoc:
|
||||
artifacts:
|
||||
paths:
|
||||
- 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