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,7 +19,7 @@ build: ...@@ -19,7 +19,7 @@ build:
- target/release/gcli - target/release/gcli
# use cache to avoid re-downloading and re-building all dependencies # use cache to avoid re-downloading and re-building all dependencies
cache: cache:
- key: key:
files: files:
- Cargo.lock - Cargo.lock
paths: paths:
...@@ -32,9 +32,22 @@ release: ...@@ -32,9 +32,22 @@ release:
stage: release stage: release
image: rust image: rust
script: script:
- chmod +x .ci/release_script.sh - echo "Creating a release..."
- .ci/release_script.sh # 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: only:
- tags - tags
# Not necessary but clearly shows the dependency
dependencies: dependencies:
- build - build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment