kopia lustrzana https://gitlab.com/sane-project/backends
tools: updates for the create_release tool.
rodzic
cab9828b3d
commit
84b0be80c7
|
@ -125,6 +125,8 @@ make-distcheck:
|
||||||
upload:
|
upload:
|
||||||
image: alpine
|
image: alpine
|
||||||
stage: release
|
stage: release
|
||||||
|
needs:
|
||||||
|
- job: make-dist
|
||||||
before_script:
|
before_script:
|
||||||
- apk --no-cache add curl git jq
|
- apk --no-cache add curl git jq
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -4,9 +4,7 @@
|
||||||
#
|
#
|
||||||
# License: GPL-3.0+
|
# License: GPL-3.0+
|
||||||
|
|
||||||
GROUP=sane-project
|
PROJECT_ID=$CI_PROJECT_ID
|
||||||
PROJECT=backends
|
|
||||||
PROJECT_ID=$GROUP%2F$PROJECT
|
|
||||||
|
|
||||||
API_ENDPOINT=https://gitlab.com/api/v4
|
API_ENDPOINT=https://gitlab.com/api/v4
|
||||||
|
|
||||||
|
@ -18,17 +16,16 @@ upload () {
|
||||||
--request POST \
|
--request POST \
|
||||||
$API_ENDPOINT/projects/$PROJECT_ID/uploads \
|
$API_ENDPOINT/projects/$PROJECT_ID/uploads \
|
||||||
| jq --raw-output .url \
|
| jq --raw-output .url \
|
||||||
| sed "s|^|https://gitlab.com/$GROUP/$PROJECT|"
|
| sed "s|^|https://gitlab.com/-/project/$PROJECT_ID|"
|
||||||
}
|
}
|
||||||
|
|
||||||
cat << EOF > release.json
|
cat << EOF > release.json
|
||||||
{
|
{
|
||||||
"name": "SANE Backends $CI_COMMIT_TAG",
|
"name": "SANE Backends $CI_COMMIT_TAG",
|
||||||
"tag_name": "$CI_COMMIT_TAG",
|
"tag_name": "$CI_COMMIT_TAG",
|
||||||
"description": "$(sed '1,3d; //,$d}' NEWS \
|
"description": $(sed '1,9d;/\x0c/,$d' NEWS \
|
||||||
| git stripspace \
|
| git stripspace \
|
||||||
| sed 's/"/\\"/g; s/$/\\n/g' \
|
| jq -Rs),
|
||||||
| tr -d '\n')",
|
|
||||||
"assets": {
|
"assets": {
|
||||||
"links": [
|
"links": [
|
||||||
EOF
|
EOF
|
||||||
|
|
Ładowanie…
Reference in New Issue