Skip to content

Updating DCML annotation workflow (v2.4) #4

Updating DCML annotation workflow (v2.4)

Updating DCML annotation workflow (v2.4) #4

Workflow file for this run

name: Release on Zenodo
on:
release:
types: [ published ]
branches: [ main ]
jobs:
upload-to-zenodo:
runs-on: ubuntu-latest
name: A job to update metadata and push a release to Zenodo
steps:
# This step is not needed at the moment but might decide to add on more steps in the future
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Upload to Zenodo
id: release
uses: megasanjay/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
zenodo_token: ${{ secrets.ZENODO_ACCESS_TOKEN }}
zenodo_deposition_id: 7504011
zenodo_publish: false
zenodo_sandbox: false
commit_message: 'chore: update ${file_name} for Zenodo release'
update_metadata_files: true
codemeta_json: false
citation_cff: true
zenodo_json: true
# Get the doi from the `release` step
- name: Get the output doi
run: echo "The released doi was ${{ steps.release.outputs.doi }}"