Newer
Older
image: python:3.6
send-snapshot:
rules:
- if: $CI_COMMIT_TAG =~ /^v?[0-9]+\.[0-9]+/
script:
- apt-get update -q -y
- apt-get install -y python-pip
- python -V
- echo "Vesta Rocks!"
- 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