Commit ac4d4c41 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

Merge tag 'v5.0.0' into develop

\# SADE-Project 5.0.0

This is a major release marking the end of the funding phase.

\# Features
- ajax loader for nested/referenced index entries
- added font “Cinzel”
- added release workflow

\# Adjustments
- contact details
- added sponsor to footer

\# Bugfixes
- find items from work index
- specifc CSS rules for A3, A5, A9 and D5

[dev_msg]
parents 8d830b1f dea65e0c
Pipeline #117657 passed with stages
in 10 minutes and 29 seconds
......@@ -26,6 +26,7 @@ build-develop:
build-master:
only:
- master
- tags
stage: build
script:
- cp master.build.properties local.build.properties
......@@ -67,3 +68,35 @@ upload:
script:
- FILENAME=$(ls build/*.xar)
- curl -u ci:${EXIST_UPLOAD_PW} -X POST -F file=@${FILENAME} https://ci.de.dariah.eu/exist-upload
# when a git flow release is made, a tag will be pushed starting this job. it
# will keep the resulting artifact from job number one and it will set up a
# Gitlab release at the repo. therefore the merge message starting at the release
# branch should be written in markdown.
release:
stage: deploy
only:
- tags
script:
# get number of first job in pipeline (assuming that this will create the needed artifact)
# it is also possible to query for a job name by altering the jq filter
- 'curl --output jobs.json --header "PRIVATE-TOKEN: $GITLAB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs"'
- CI_JOB_TARGET=$(jq ".[0].id" < jobs.json)
- echo $CI_JOB_TARGET
# keep artifact (release will link there)
- 'curl --request POST --header "PRIVATE-TOKEN: $GITLAB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/$CI_JOB_TARGET/artifacts/keep"'
# create release data
# parse commit message (markdown, lines starting with “\”)
- MARKDOWN=$(echo "$CI_COMMIT_MESSAGE" | sed 's=^\\==g')
# prepare the json file
- 'jq
".name = \"$CI_PROJECT_PATH $CI_COMMIT_TAG\" |
.tag_name = \"$CI_COMMIT_TAG\" |
.description = \"$MARKDOWN\" |
.assets.links[0].name = \"package\" |
.assets.links[0].url = \"https://gitlab.gwdg.de/$CI_PROJECT_PATH/-/jobs/$CI_JOB_TARGET/artifacts/download\"
" < ./gitlab/gitlab-release.json.tmpl > gitlab-release.json'
- 'curl --header "Content-Type: application/json" --header "PRIVATE-TOKEN: $GITLAB_TOKEN" --data @gitlab-release.json --request POST $CI_API_V4_URL/projects/$CI_PROJECT_ID/releases'
artifacts:
paths:
- gitlab-release.json
{
"name": "",
"tag_name": "",
"description": "",
"assets": {
"links": [{
"name": "",
"url": ""
}]
}
}
project.name=http://textgrid.de/exist/fontane-develop
project.version=4.8.1
project.version=5.0.0
project.abbrev=fontane
project.title=[Fontane] SADE-Project
project.processorversion=4.7.0
......
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