Skip to content

Add Zenodo draft backup for EZID-provider datasets #136

Closed

Description

@neuromechanist

Summary

When a dataset uses EZID as the DOI provider, also create a draft (unpublished) Zenodo deposition and upload the zip archive as a backup. Zenodo serves as a secondary archive; the deposition is never published (DOI stays with EZID).

Motivation

  • Redundant archival: if EZID/S3 has issues, data is also on Zenodo
  • All Zenodo infrastructure already exists (API client, upload, tests)
  • The generate-archive workflow already produces zip files in S3

Implementation

Currently the publish orchestrator skips Zenodo for EZID datasets:

if (provider === "ezid") {
  await updateProgress("upload_to_zenodo"); // Skip
}

Change to:

  1. During publish (or on version release), create a Zenodo draft deposition
  2. Upload the S3 archive zip to the draft deposition
  3. Store the Zenodo deposition ID in D1 alongside the EZID identifier
  4. Keep the deposition as draft (never call publishDeposition)

Key files

  • backend/src/routes/admin.ts - publish orchestrator step 10
  • backend/src/routes/webhooks.ts - version DOI webhook
  • backend/src/services/zenodo.ts - existing Zenodo API client
  • backend/src/services/github.ts - downloadReleaseArchive

Notes

  • 100MB archive limit due to Cloudflare Workers memory constraints
  • Zenodo sandbox for testing; production Zenodo for real datasets
  • Draft depositions can be updated/deleted; no permanent commitment

Activity

  1. added
    feature
    on Feb 12, 2026
  2. neuromechanist commented on Feb 18, 2026

    @neuromechanist
    ContributorAuthor

    Shipped in v0.6.0 (Zenodo draft backup in webhook handler)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions