Verified Commit 5d67c555 authored by Bennet Bleßmann's avatar Bennet Bleßmann
Browse files

generate link, where we have all the required information

this way `update_version.sh` and `gitlab_release.sh` can't easily diverge form another and `release_helper.sh`
parent 482f1a76
Pipeline #1498 passed with stages
in 212 minutes and 28 seconds
......@@ -16,7 +16,7 @@ for index in ${!LOCAL_FILE_NAMES[*]}; do
{
"name": "${UPLOAD_FILE_NAMES[$index]}",
"url": "${PACKAGE_REGISTRY_URL}/${UPLOAD_FILE_NAMES[$index]}",
"filepath": "/other/${UPLOAD_FILE_NAMES[$index]}"
"filepath": "${UPLOAD_FILE_PATH[$index]}"
}
ENTRY
)"
......
......@@ -81,4 +81,18 @@ function release_helper_init() {
"${full_name}-manual.pdf"
)
# for now place all files under other
for index in ${!UPLOAD_FILE_NAMES[*]} ; do
UPLOAD_FILE_PATH[$index]="/other/${UPLOAD_FILE_NAMES[$index]}"
done
DOWNLOAD_URL="${CI_PROJECT_URL}/-/releases/${release_tag}/downloads"
# these variables are used by update_version.sh when doing a release
# for the download links on curry-lang.org
# these urls are meaningless for nightly releases
src_download="${DOWNLOAD_URL}${UPLOAD_FILE_PATH[0]}"
arch_download="${DOWNLOAD_URL}${UPLOAD_FILE_PATH[1]}"
manual_download="${DOWNLOAD_URL}${UPLOAD_FILE_PATH[2]}"
}
......@@ -80,8 +80,6 @@ function release() {
release_helper_init release
DOWNLOAD_URL="https://git.ps.informatik.uni-kiel.de/curry/pakcs/-/releases/${release_tag}/downloads/other"
# replace the latest.version file
install -D /dev/stdin "${LATEST_FILE}" <<LATEST_VERSION
---
......@@ -89,9 +87,9 @@ function release() {
# MANUAL CHANGES TO THIS FILE WILL GET LOST ON THE NEXT RELEASE RUN
date: ${BUILD_DATE}
version: Latest
source: ${DOWNLOAD_URL}/pakcs-${VERSION}-src.tar.gz
linux: ${DOWNLOAD_URL}/pakcs-${VERSION}-amd64-Linux.tar.gz
manual: ${DOWNLOAD_URL}/pakcs-${VERSION}-manual.pdf
source: ${src_download}
linux: ${arch_download}
manual: ${manual_download}
commit_sha: ${CI_COMMIT_SHA}
commit_short_sha: ${CI_COMMIT_SHORT_SHA}
ci_job: ${CI_JOB_ID}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment