Documentation for each action could be found in their respective directories.
To publish a record at Zenodo. See the below example.
workflow "Create Record" {
resolves = "publish"
}
action "create" {
uses = "popperized/zenodo/create@master"
secrets = ["ZENODO_API_TOKEN"]
env = {
ZENODO_METADATA_PATH = "./metadata.json"
}
}
action "upload" {
needs = "create"
uses = "popperized/zenodo/upload@master"
secrets = ["ZENODO_API_TOKEN"]
env = {
ZENODO_UPLOAD_PATH = "./files"
}
}
action "publish" {
needs="upload"
uses = "popperized/zenodo/publish@master"
secrets = [ "ZENODO_API_TOKEN" ]
}
Example metadata.json
file
{
"metadata": {
"title": "Title here",
"upload_type": "poster",
"description": "This is just for test",
"creators": [
{
"name": "Arshul, Arshul"
}
]
}
}
Keep the metadata in a json
file and set the path to this json
file as ZENODO_METADATA_PATH
environment variable.
Put the files to be uploaded in a directory and set the path to this directory as ZENODO_UPLOAD_PATH
environment variable.
It would create a deposition with the provided metadata and upload the files in ZENODO_UPLOAD_PATH
directory and publishes the record.
ZENODO_API_TOKEN
- Required The API access_token for zenodo account.
ZENODO_METADATA_PATH
- Required Path tojson
file containing metadata.ZENODO_UPLOAD_PATH
- Required path to directory containing the files to be uploaded.