Skip to content

Commit 90662cc

Browse files
committedNov 28, 2024
Add workflow to publish releases to Zenodo
This commit introduces a new GitHub Actions workflow that automates the publishing of releases to Zenodo. The workflow is triggered on the creation of a new release that is not marked as a prerelease. Additionally, it renames the existing publish.yml to publish-pypi.yml for clarity.
1 parent 3f0b17e commit 90662cc

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
 
File renamed without changes.

‎.github/workflows/publish-zenodo.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish to Zenodo
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
# Filter out prereleases
8+
if: "!github.event.release.prerelease"
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Publish to Zenodo
20+
uses: zenodraft/actions@v1
21+
env:
22+
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}
23+
with:
24+
collection: ${{ secrets.ZENODO_COLLECTION_ID }} # Optional
25+
draft: false
26+
publish: true
27+
sandbox: false # Set to true for testing

0 commit comments

Comments
 (0)
Failed to load comments.