-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (33 loc) · 1.08 KB
/
release-on-zenodo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Release on Zenodo
on:
release:
types: [published]
jobs:
upload-to-zenodo:
runs-on: ubuntu-latest
name: A job to update metadata and push a release to Zenodo
steps:
- 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.BOT_ACTIONS }}
zenodo_token: ${{ secrets.ZENODO_TOKEN }}
zenodo_deposition_id: 5565456
zenodo_publish: true
zenodo_sandbox: false
committer_name: "fairdataihub-bot"
committer_email: "[email protected]"
commit_message: "chore: update ${file_name} for Zenodo release"
update_metadata_files: true
codemeta_json: true
citation_cff: true
zenodo_json: true
docs_compatibility_json: false
# Get the doi from the `release` step
- name: Get the output doi
run: echo "The released doi was ${{ steps.release.outputs.doi }}"