Merge pull request #31 from jspaaks/master

changed some metadata properties to be able to publish on Zenodo
master
Martin Scheidt 2022-04-04 19:07:20 +02:00 committed by Martin Scheidt
commit bdf679986e
2 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,6 @@
{ {
"title": "TikZ-trackschematic", "title": "TikZ-trackschematic",
"version": "%%[SCRIPT]", "version": "%%[SCRIPT]",
"publication_date": "%%[SCRIPT]",
"creators": [ "creators": [
{ {
"orcid": "0000-0002-9384-8945", "orcid": "0000-0002-9384-8945",
@ -23,8 +22,5 @@
}, },
"language": "eng", "language": "eng",
"access_right": "open", "access_right": "open",
"resource_type": { "upload_type": "software"
"type": "software", }
"title": "Software"
}
}

View File

@ -623,7 +623,7 @@ create_zenodo_metadata() {
sed -i".backup" -e"s/\"version\": \"%%\[SCRIPT\]\"/\"version\": \"$VERSION_STR\"/g" .github/zenodo/metadata.json sed -i".backup" -e"s/\"version\": \"%%\[SCRIPT\]\"/\"version\": \"$VERSION_STR\"/g" .github/zenodo/metadata.json
# 2. replace "publication_date": "%%[SCRIPT]" # 2. replace "publication_date": "%%[SCRIPT]"
sedi "s/\"publication_date\": \"%%\[SCRIPT\]\"/\"publication_date\": \"$DATE\"/g" .github/zenodo/metadata.json # sedi "s/\"publication_date\": \"%%\[SCRIPT\]\"/\"publication_date\": \"$DATE\"/g" .github/zenodo/metadata.json
} }
run_compile_documentation() { run_compile_documentation() {