Skip to content

Commit c8e1e52

Browse files
authored
Merge pull request #256 from NLeSC/235-zenodo-integration
add Zenodo integration issue template
2 parents a075055 + be6e98d commit c8e1e52

File tree

5 files changed

+31
-14
lines changed

5 files changed

+31
-14
lines changed

{{cookiecutter.project_name}}/.github/next_steps/04_citation.md renamed to {{cookiecutter.project_name}}/.github/next_steps/02_citation.md

File renamed without changes.

{{cookiecutter.project_name}}/.github/next_steps/02_zenodo_integration.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: 'Next step: Enable Zenodo integration'
3+
---
4+
5+
By enabling Zenodo integration, your package will automatically get a DOI which can be used to cite your package. After enabling Zenodo integration for your GitHub repository, Zenodo will create a snapshot and archive each release you make on GitHub. Moreover, Zenodo will create a new DOI for each GitHub release of your code.
6+
7+
To enable Zenodo integration:
8+
9+
1. Go to http://zenodo.org and login with your GitHub account. When you are redirected to GitHub, *Authorize application* to give permission to Zenodo to access your account.
10+
1. Go to <https://zenodo.org/account/settings/github/> and enable Zenodo integration of your repository by clicking on `On` toggle button.
11+
2. Your package will get a DOI only after you make a release. Create a new release as described in [README.dev.md]({{cookiecutter.repository}}/blob/main/README.dev.md#33-github)
12+
3. At this point you should have a DOI. To find out the DOI generated by Zenodo:
13+
1. Visit https://zenodo.org/deposit and click on your repository link
14+
2. You will find the latest DOI in the right column in Versions box in **Cite all versions?** section
15+
3. Copy the text of the link. For example `10.5281/zenodo.1310751`
16+
4. Update the badge in your repository
17+
1. Edit README.md and replace the badge placeholder with the badge link you copied in previous step.
18+
The badge placeholder is shown below.
19+
20+
`[![DOI](https://zenodo.org/badge/DOI/<replace-with-created-DOI>.svg)](https://doi.org/<replace-with-created-DOI>)`
21+
22+
For FAQ about Zenodo please visit <https://help.zenodo.org/>.

{{cookiecutter.project_name}}/.github/workflows/next_steps.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,28 @@ jobs:
1212
with:
1313
filename: .github/next_steps/01_sonarcloud_integration.md
1414
id: sonarcloud
15-
- name: Create Zenodo integration issue
15+
16+
- name: Create citation data issue
1617
uses: JasonEtco/create-an-issue@v2
1718
env:
1819
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1920
with:
20-
filename: .github/next_steps/02_zenodo_integration.md
21-
id: zenodo
21+
filename: .github/next_steps/02_citation.md
22+
id: citation
2223
- name: Create readthedocs issue
2324
uses: JasonEtco/create-an-issue@v2
2425
env:
2526
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2627
with:
2728
filename: .github/next_steps/03_readthedocs.md
2829
id: readthedocs
29-
- name: Create citation data issue
30+
- name: Create Zenodo integration issue
3031
uses: JasonEtco/create-an-issue@v2
3132
env:
3233
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3334
with:
34-
filename: .github/next_steps/04_citation.md
35-
id: citation
35+
filename: .github/next_steps/04_zenodo_integration.md
36+
id: zenodo
3637
- name: Create linting issue
3738
uses: JasonEtco/create-an-issue@v2
3839
env:

{{cookiecutter.project_name}}/README.dev.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ python3 -m pip install --upgrade pip setuptools
116116
python3 -m pip install --no-cache-dir .
117117
python3 -m pip install --no-cache-dir .[publishing]
118118

119-
# clean up any previously generated artefacts
119+
# clean up any previously generated artefacts
120120
rm -rf {{ cookiecutter.package_name }}.egg-info
121121
rm -rf dist
122122

@@ -161,5 +161,4 @@ twine upload dist/*
161161

162162
### (3/3) GitHub
163163

164-
Don't forget to also make a release on GitHub. If your repository uses the GitHub-Zenodo integration this will also
165-
trigger Zenodo into making a snapshot of your repository and sticking a DOI on it.
164+
Don't forget to also make a release on GitHub. If your repository uses the GitHub-Zenodo integration this will also trigger Zenodo into making a snapshot of your repository and sticking a DOI on it.

0 commit comments

Comments
 (0)