From 13bc54a9117344f1aea96ae9077087aba795d735 Mon Sep 17 00:00:00 2001 From: Carsten Lemmen <carsten.lemmen@hereon.de> Date: Mon, 31 Mar 2025 10:32:18 +0200 Subject: [PATCH] Added zenodo tokens to gitlab workflow --- .gitlab/zenodo.yaml | 16 ++++++++++++++-- ChangeLog.md | 3 ++- ReadMe.md | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.gitlab/zenodo.yaml b/.gitlab/zenodo.yaml index 6b2d6df..6be289d 100644 --- a/.gitlab/zenodo.yaml +++ b/.gitlab/zenodo.yaml @@ -15,7 +15,19 @@ send-snapshot: script: - pip install gitlab2zenodo - git archive --format zip --output ${CI_COMMIT_TAG#v}.zip ${CI_COMMIT_TAG} - - g2z-send -i $zenodo_record -t $zenodo_token -s -m .zenodo.json ${CI_COMMIT_TAG#v}.zip + - g2z-send -i 15111433 -t ${ZENODO_APIKEY}} -m .zenodo.json ${CI_COMMIT_TAG#v}.zip needs: [] - allow_failure: false + allow_failure: true + interruptible: true + +send-sandbox-snapshot: + stage: deploy + rules: + - if: $CI_COMMIT_TAG =~ /^v?[0-9]+\.[0-9]+/ + script: + - pip install gitlab2zenodo + - git archive --format zip --output ${CI_COMMIT_TAG#v}.zip ${CI_COMMIT_TAG} + - g2z-send -i 192628 -t ${ZENODO_SANDBOX} -s -m .zenodo.json ${CI_COMMIT_TAG#v}.zip + needs: [] + allow_failure: true interruptible: true diff --git a/ChangeLog.md b/ChangeLog.md index ab54a5b..d4e4c97 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -13,10 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Cleanup of git history - Simulation results available as artifacts +- Deposition on Zenodo # Release notes for version 1.0.0 -- More omplete metadata +- More complete metadata - Homogenized documentation - Submission to the Journal of Open Source Software (JOSS) - Docker available at https://registry.hzdr.de/dam-elbextreme/oxypom/fabm:latest diff --git a/ReadMe.md b/ReadMe.md index 97e580c..2681e66 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -12,11 +12,11 @@ SPDX-FileContributor Carsten Lemmen <carsten.lemmen@hereon.de> [](https://github.com/prettier/prettier) [](https://codebase.helmholtz.cloud/dam-elbextreme/oxypom/-/pipelines) [](./LICENSES/Apache-2.0.txt) +[](https://zenodo.org/records/15111433) <!-- [](https://www.codefactor.io/repository/github/platipodium/vinos [](LINK HERE) -[](LINK HERE) [](LINK HERE) --> -- GitLab