CI: fix artifact URL for releases

GitLab requires numeric project ID for file uploads, use it in the URL.
merge-requests/873/head
ValdikSS 2025-05-22 04:54:27 +03:00
rodzic 02e4000481
commit a09d21761e
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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,7 +16,7 @@ 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