kopia lustrzana https://gitlab.com/sane-project/backends
Merge branch 'update-ci' into 'master'
Update CI Releases See merge request sane-project/backends!873merge-requests/837/merge
commit
91126320e3
|
@ -125,6 +125,8 @@ make-distcheck:
|
|||
upload:
|
||||
image: alpine
|
||||
stage: release
|
||||
needs:
|
||||
- job: make-dist
|
||||
before_script:
|
||||
- apk --no-cache add curl git jq
|
||||
script:
|
||||
|
|
|
@ -4,9 +4,7 @@
|
|||
#
|
||||
# License: GPL-3.0+
|
||||
|
||||
GROUP=sane-project
|
||||
PROJECT=backends
|
||||
PROJECT_ID=$GROUP%2F$PROJECT
|
||||
PROJECT_ID=$CI_PROJECT_ID
|
||||
|
||||
API_ENDPOINT=https://gitlab.com/api/v4
|
||||
|
||||
|
@ -18,17 +16,16 @@ upload () {
|
|||
--request POST \
|
||||
$API_ENDPOINT/projects/$PROJECT_ID/uploads \
|
||||
| jq --raw-output .url \
|
||||
| sed "s|^|https://gitlab.com/$GROUP/$PROJECT|"
|
||||
| sed "s|^|https://gitlab.com/-/project/$PROJECT_ID|"
|
||||
}
|
||||
|
||||
cat << EOF > release.json
|
||||
{
|
||||
"name": "SANE Backends $CI_COMMIT_TAG",
|
||||
"tag_name": "$CI_COMMIT_TAG",
|
||||
"description": "$(sed '1,3d; //{s/.*//; q}' NEWS \
|
||||
"description": $(sed '1,9d; //{s/.*//; q}' NEWS \
|
||||
| git stripspace \
|
||||
| sed 's/"/\\"/g; s/$/\\n/g' \
|
||||
| tr -d '\n')",
|
||||
| jq -Rs),
|
||||
"assets": {
|
||||
"links": [
|
||||
EOF
|
||||
|
|
Ładowanie…
Reference in New Issue