Skip to content

Commit

Permalink
adding testing scripts
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Mar 4, 2022
0 parents commit fdadd4d
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"upload_type": "software",
"description": "This is a GitHub action for releasing to Zenodo without giving webhook admin access",
"title": "Zenodo Release Action",
"creators": [
{
"affiliation": "Lawrence Livermore National Lab",
"name": "Vanessa Sochat"
},
{
"affiliation": "Ohio SuperComputer Center",
"name": "Jeff Ohrstrom"
}
]
}
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Zenodo Action

This is a quick helper action to allow you to automatically update a package on zenodo
on release, and without needing to enable admin webhooks. To get this working you will need to:

1. Create an account on Zenodo
2. Under your name -> Applications -> Developer Applications -> Personal Access Tokens -> +New Token and choose both scopes for deposit
3. Add the token to your repository secrets as `ZENODO_TOKEN`

**todo** under development!

29 changes: 29 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Zenodo Release Action"
description: "Release zenodo metadata so you don't have to give admin hook access"
inputs:
archive:
description: the path to the release archive
required: true
version:
description: the release version
required: true
zenodo_json:
description: Path to zenodo.json to upload with metadata (must exist)

#outputs:
# matrix:
# description: matrix of spliced builds
# value: ${{ steps.matrix.outputs.matrix }}

runs:
using: "composite"
steps:

- name: Deploy Zenodo
env:
zenodo_json: ${{ inputs.zenodo_json }}
archive: ${{ inputs.archive }}
version: ${{ inputs.version }}
ACTION_PATH: ${{ github.action_path }}
run: ${{ github.action_path }}/scripts/deploy.py ${zenodo_json} ${archive} --version ${version}
shell: python

0 comments on commit fdadd4d

Please sign in to comment.