Skip to content
Snippets Groups Projects
Commit de184b29 authored by poka's avatar poka
Browse files

add vit proposition to publish artefact without gitlab API

But I wanna keep my bunty for sure, it's mine.
parent c6cd17c6
No related branches found
No related tags found
1 merge request!19Add publish command
This commit is part of merge request !19. Comments created here will be created in the context of that merge request.
......@@ -19,11 +19,11 @@ build:
- target/release/gcli
# use cache to avoid re-downloading and re-building all dependencies
cache:
- key:
files:
- Cargo.lock
paths:
- target/release
key:
files:
- Cargo.lock
paths:
- target/release
# only build gcli when adding a tag
only:
- tags
......@@ -32,9 +32,22 @@ release:
stage: release
image: rust
script:
- chmod +x .ci/release_script.sh
- .ci/release_script.sh
- echo "Creating a release..."
# Define release parameters
release:
# Release name and description using the tag name
name: "Release $CI_COMMIT_TAG"
description: "Automatically created release for v$CI_COMMIT_TAG"
# Set the tag for the release
tag_name: "$CI_COMMIT_TAG"
# Attach the artifact to the release
assets:
links:
- name: "gcli v$CI_COMMIT_TAG for Linux"
url: "$CI_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_TAG/raw/target/release/gcli?job=build"
# Trigger release creation only for tagged commits
only:
- tags
# Not necessary but clearly shows the dependency
dependencies:
- build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment