Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Enrique Garcia
ZenodoCI
Commits
23f9fb57
Commit
23f9fb57
authored
May 25, 2021
by
Enrique Garcia
Browse files
update readme and gitlab-ci vars due to new release
parent
b8bc2ad7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
.gitlab-ci.yml
.gitlab-ci.yml
+4
-3
README.md
README.md
+1
-0
zenodoci/upload_new_version_deposit.py
zenodoci/upload_new_version_deposit.py
+1
-1
No files found.
.gitlab-ci.yml
View file @
23f9fb57
...
...
@@ -73,7 +73,7 @@ build_docker:
deploy_sandbox
:
stage
:
deploy
image
:
gitlab-registry.in2p3.fr/escape2020/wp3/zenodoci:v1.
1
image
:
gitlab-registry.in2p3.fr/escape2020/wp3/zenodoci:v1.
2
before_script
:
-
which parse_last_release_git.sh
-
test_connection_zenodo --token $SANDBOX_ZENODO_TOKEN --sandbox True -p $CI_PROJECT_DIR
...
...
@@ -92,9 +92,10 @@ deploy_sandbox:
-
ls ./build
-
upload_new_deposit --token $SANDBOX_ZENODO_TOKEN --sandbox True --input-dir ./build
-
upload_new_version_deposit -
t
$SANDBOX_ZENODO_TOKEN -
s True -i ./build -id $
ZENODO_PROJECT_ID
-
upload_new_version_deposit -
-token
$SANDBOX_ZENODO_TOKEN -
-sandbox True --input-dir ./build --deposit_id $SANDBOX_
ZENODO_PROJECT_ID
except
:
-
master
# run only in branches
-
tags
deploy_zenodo
:
...
...
@@ -108,6 +109,6 @@ deploy_zenodo:
-
if [[ -f ./codemeta.json ]]; then cp ./codemeta.json ./build; fi
-
ls ./build
-
upload_new_deposit -
-token
$ZENODO_TOKEN -
-sandbox False --input-dir ./build
-
upload_new_
version_
deposit -
t
$ZENODO_TOKEN -
s False -i ./build -id $ZENODO_PROJECT_ID
only
:
-
tags
README.md
View file @
23f9fb57
# ZenodoCI
[

](https://doi.org/10.5281/zenodo.4786641)
[

](
https://gitlab.in2p3.fr/escape2020/wp3/zenodoci/-/commits/master)
[

](https://opensource.org/licenses/MIT)
...
...
zenodoci/upload_new_version_deposit.py
View file @
23f9fb57
...
...
@@ -128,7 +128,7 @@ def main():
update_entry
.
json
())
# 4 - publish entry - to publish the entry, uncomment the two lone below
# publish = z.publish_entry(new_deposition_id)
# publish = z
enodo
.publish_entry(new_deposition_id)
# print(publish.json())
print
(
" * New version of the old deposition correctly published !
\n
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment