add automatic zenodo updates
see example: https://git.gfz-potsdam.de/EnMAP/sicor/-/blob/main/.zenodo.json?ref_type=heads
for gitlab-ci.yml:
send-snapshot:
stage: deploy
dependencies:
- test_s2downloader
script:
- source activate ci_env
- if [[ ! $CI_COMMIT_TAG =~ ^v?[0-9]+\.[0-9]+ ]]; then exit 0; fi
- pip install -U gitlab2zenodo
- git archive --format zip --output sicor-${CI_COMMIT_TAG}.zip ${CI_COMMIT_TAG}
- g2z-send -m .zenodo.json sicor-${CI_COMMIT_TAG}.zip -p
only:
- /^v\d+\.\d+\.\d+([abc]\d*)?$/
except:
- dev
for using zenodo sandbox: - g2z-send -s -m .zenodo.json sicor-${CI_COMMIT_TAG}.zip -p