Skip to content

Commit

Permalink
Add workflow to publish releases to Zenodo
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dadelforge committed Nov 28, 2024
1 parent 3f0b17e commit 90662cc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
File renamed without changes.
27 changes: 27 additions & 0 deletions .github/workflows/publish-zenodo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish to Zenodo

on:
release:
types: [published]

# Filter out prereleases
if: "!github.event.release.prerelease"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Publish to Zenodo
uses: zenodraft/actions@v1
env:
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}
with:
collection: ${{ secrets.ZENODO_COLLECTION_ID }} # Optional
draft: false
publish: true
sandbox: false # Set to true for testing

0 comments on commit 90662cc

Please sign in to comment.