-
Notifications
You must be signed in to change notification settings - Fork 31
28 lines (27 loc) · 892 Bytes
/
zenodraft.yml
File metadata and controls
28 lines (27 loc) · 892 Bytes
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
name: zenodraft
on:
# Trigger when you publish a release via GitHub's release page
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout the contents of your repository
uses: actions/checkout@v4
- name: Create a draft snapshot of your repository contents as a new
version in collection 1162057 on Zenodo using metadata
from repository file .zenodo.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
uses: zenodraft/action@0.13.3
with:
compression: zip
collection: 1162057
metadata: .zenodo.json
publish: false
sandbox: false
upsert-doi: true
upsert-location: identifiers[1]