Skip to content

Add Software Heritage archival on release#4

Merged
annefou merged 1 commit into
mainfrom
feat/swh-save-on-release
Jun 13, 2026
Merged

Add Software Heritage archival on release#4
annefou merged 1 commit into
mainfrom
feat/swh-save-on-release

Conversation

@annefou

@annefou annefou commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

What

Adds .github/workflows/swh-save.yml: on each GitHub release (and via manual workflow_dispatch), requests Software Heritage Save Code Now so the released revision gets a permanent, forge-agnostic, ISO/IEC-standard SWHID. Adds a Software Heritage badge to the README.

Why

Complements the existing Zenodo deposit (docker.yml): Zenodo gives a citable release+metadata DOI but is GitHub-only; Software Heritage gives an immutable code identity that also covers GitLab / self-hosted forks. Every new replication then has a durable software anchor for downstream linking (e.g. OpenAIRE).

Notes

  • Dependency-free curl to the SWH API (no unmaintained third-party action), consistent with how docker.yml calls Zenodo.
  • continue-on-error: true — best-effort archival never fails a release.
  • No secrets required (anonymous GitHub saves are accepted); a token path is documented in the workflow header if that ever changes.
  • Untested — validate via Actions → Run workflow, then check the run log and the SWH requests page.

🤖 Generated with Claude Code

On release (and via workflow_dispatch), request Software Heritage Save Code Now
so each released revision gets a permanent, forge-agnostic SWHID. Dependency-free
curl call, best-effort (continue-on-error, never fails the release). Add a
Software Heritage badge to the README.
@annefou annefou merged commit 969525b into main Jun 13, 2026
1 check passed
@annefou annefou deleted the feat/swh-save-on-release branch June 13, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant