tools: updates for the create_release tool.

release-1.4.x^2
Ralph Little 2025-05-24 12:57:32 -07:00
rodzic cab9828b3d
commit 84b0be80c7
2 zmienionych plików z 6 dodań i 7 usunięć

Wyświetl plik

@ -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:

Wyświetl plik

@ -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