-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |