Skip to content

Commit cb65827

Browse files
authored
Create zenodraft.yml
1 parent 992961b commit cb65827

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/zenodraft.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: zenodraft
2+
on:
3+
# Trigger when you publish a release via GitHub's release page
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout the contents of your repository
13+
uses: actions/checkout@v2
14+
- name: Create a draft snapshot of your repository contents as a new
15+
version in collection 1404735 on Zenodo using metadata
16+
from repository file .zenodo.json
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
20+
uses: zenodraft/[email protected]
21+
with:
22+
collection: 1404735
23+
metadata: .zenodo.json
24+
publish: false
25+
sandbox: false
26+
upsert-doi: true
27+
upsert-location: identifiers[0]

0 commit comments

Comments
 (0)