Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğ
Ğcli-v2s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Rust
Ğcli-v2s
Merge requests
!19
Add publish command
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add publish command
add-publish-command
into
master
Overview
19
Commits
11
Pipelines
10
Changes
8
Merged
poka
requested to merge
add-publish-command
into
master
1 year ago
Overview
3
Commits
11
Pipelines
10
Changes
8
Expand
This is usefull to be sure the veresion you push match with sur gcli internal version.
0
0
Merge request reports
Compare
master
version 20
97c27bec
1 year ago
version 19
eb6007ca
1 year ago
version 18
0d33ac29
1 year ago
version 17
4385a727
1 year ago
version 16
02e7298f
1 year ago
version 15
4bd2b562
1 year ago
version 14
1b128b2b
1 year ago
version 13
69236fbe
1 year ago
version 12
de3948a8
1 year ago
version 11
6b50b24c
1 year ago
version 10
15b3b69a
1 year ago
version 9
53a6a367
1 year ago
version 8
8fc8c0e8
1 year ago
version 7
6d12145a
1 year ago
version 6
121315e9
1 year ago
version 5
d92a77a9
1 year ago
version 4
aac1d91c
1 year ago
version 3
de184b29
1 year ago
version 2
c6cd17c6
1 year ago
version 1
ffb55891
1 year ago
master (base)
and
latest version
latest version
1a4eaf2d
11 commits,
1 year ago
version 20
97c27bec
10 commits,
1 year ago
version 19
eb6007ca
8 commits,
1 year ago
version 18
0d33ac29
7 commits,
1 year ago
version 17
4385a727
6 commits,
1 year ago
version 16
02e7298f
5 commits,
1 year ago
version 15
4bd2b562
5 commits,
1 year ago
version 14
1b128b2b
5 commits,
1 year ago
version 13
69236fbe
5 commits,
1 year ago
version 12
de3948a8
5 commits,
1 year ago
version 11
6b50b24c
5 commits,
1 year ago
version 10
15b3b69a
5 commits,
1 year ago
version 9
53a6a367
5 commits,
1 year ago
version 8
8fc8c0e8
5 commits,
1 year ago
version 7
6d12145a
5 commits,
1 year ago
version 6
121315e9
5 commits,
1 year ago
version 5
d92a77a9
5 commits,
1 year ago
version 4
aac1d91c
5 commits,
1 year ago
version 3
de184b29
4 commits,
1 year ago
version 2
c6cd17c6
3 commits,
1 year ago
version 1
ffb55891
2 commits,
1 year ago
8 files
+
201
−
64
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
.ci/release_script.sh deleted
100644 → 0
+
0
−
40
Options
#!/bin/bash
# stop script if any command fails
set
-e
# Vérifiez si le token d'accès privé GitLab est défini
if
[
-z
"
$GITLAB_PRIVATE_TOKEN
"
]
;
then
echo
"Token d'accès privé GitLab non défini. Arrêt du script."
exit
1
fi
if
[
-z
"
$CI_COMMIT_TAG
"
]
;
then
echo
"This script should only be run on a tag."
exit
1
fi
# Variables
PROJECT_ID
=
"604"
RELEASE_NAME
=
"v
$CI_COMMIT_TAG
"
RELEASE_DESCRIPTION
=
"Release v
$CI_COMMIT_TAG
is awesome !"
ARTIFACT_PATH
=
"target/release/gcli"
GITLAB_API_URL
=
"https://git.duniter.org/api/v4"
# Création de la release
echo
"Création de la release
$RELEASE_NAME
..."
curl
--header
"PRIVATE-TOKEN:
$GITLAB_PRIVATE_TOKEN
"
\
--data
"name=
$RELEASE_NAME
&tag_name=
$CI_COMMIT_TAG
&description=
$RELEASE_DESCRIPTION
"
\
"
$GITLAB_API_URL
/projects/
$PROJECT_ID
/releases"
# Construction de l'URL de l'artéfact
ARTIFACT_URL
=
"
$CI_PROJECT_URL
/-/jobs/artifacts/
$CI_COMMIT_TAG
/raw/
$ARTIFACT_PATH
?job=build"
# Ajout de l'artéfact à la release
echo
"Ajout de l'artéfact à la release..."
curl
--header
"PRIVATE-TOKEN:
$GITLAB_PRIVATE_TOKEN
"
\
--data-urlencode
"url=
$ARTIFACT_URL
"
\
--data-urlencode
"name=
$(
basename
$ARTIFACT_PATH
)
"
\
"
$GITLAB_API_URL
/projects/
$PROJECT_ID
/releases/
$CI_COMMIT_TAG
/assets/links"
echo
"Script terminé."
Loading