Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Z
ZenodoCI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ESCAPE2020
WP3
ZenodoCI
Commits
23f9fb57
Commit
23f9fb57
authored
3 years ago
by
Enrique
Browse files
Options
Downloads
Patches
Plain Diff
update readme and gitlab-ci vars due to new release
parent
b8bc2ad7
No related branches found
No related tags found
No related merge requests found
Pipeline
#120650
passed
3 years ago
Stage: install
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+4
-3
4 additions, 3 deletions
.gitlab-ci.yml
README.md
+1
-0
1 addition, 0 deletions
README.md
zenodoci/upload_new_version_deposit.py
+1
-1
1 addition, 1 deletion
zenodoci/upload_new_version_deposit.py
with
6 additions
and
4 deletions
.gitlab-ci.yml
+
4
−
3
View file @
23f9fb57
...
@@ -73,7 +73,7 @@ build_docker:
...
@@ -73,7 +73,7 @@ build_docker:
deploy_sandbox
:
deploy_sandbox
:
stage
:
deploy
stage
:
deploy
image
:
gitlab-registry.in2p3.fr/escape2020/wp3/zenodoci:v1.
1
image
:
gitlab-registry.in2p3.fr/escape2020/wp3/zenodoci:v1.
2
before_script
:
before_script
:
-
which parse_last_release_git.sh
-
which parse_last_release_git.sh
-
test_connection_zenodo --token $SANDBOX_ZENODO_TOKEN --sandbox True -p $CI_PROJECT_DIR
-
test_connection_zenodo --token $SANDBOX_ZENODO_TOKEN --sandbox True -p $CI_PROJECT_DIR
...
@@ -92,9 +92,10 @@ deploy_sandbox:
...
@@ -92,9 +92,10 @@ deploy_sandbox:
-
ls ./build
-
ls ./build
-
upload_new_deposit --token $SANDBOX_ZENODO_TOKEN --sandbox True --input-dir ./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
:
except
:
-
master
# run only in branches
-
master
# run only in branches
-
tags
deploy_zenodo
:
deploy_zenodo
:
...
@@ -108,6 +109,6 @@ deploy_zenodo:
...
@@ -108,6 +109,6 @@ deploy_zenodo:
-
if [[ -f ./codemeta.json ]]; then cp ./codemeta.json ./build; fi
-
if [[ -f ./codemeta.json ]]; then cp ./codemeta.json ./build; fi
-
ls ./build
-
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
:
only
:
-
tags
-
tags
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
23f9fb57
# ZenodoCI
# ZenodoCI
[

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

](
[

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

](https://opensource.org/licenses/MIT)
[

](https://opensource.org/licenses/MIT)
...
...
This diff is collapsed.
Click to expand it.
zenodoci/upload_new_version_deposit.py
+
1
−
1
View file @
23f9fb57
...
@@ -128,7 +128,7 @@ def main():
...
@@ -128,7 +128,7 @@ def main():
update_entry
.
json
())
update_entry
.
json
())
# 4 - publish entry - to publish the entry, uncomment the two lone below
# 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(publish.json())
print
(
"
* New version of the old deposition correctly published !
\n
"
)
print
(
"
* New version of the old deposition correctly published !
\n
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment