Skip to content

Comments

Attach built .jpl artifact to GitHub release (#103)#139

Closed
Aaravanand00 wants to merge 1 commit intojoplin:masterfrom
Aaravanand00:attach-release-binary-to-github-release
Closed

Attach built .jpl artifact to GitHub release (#103)#139
Aaravanand00 wants to merge 1 commit intojoplin:masterfrom
Aaravanand00:attach-release-binary-to-github-release

Conversation

@Aaravanand00
Copy link

Summary

This PR adds a release workflow that automatically builds the plugin and attaches the generated .jpl file to the corresponding GitHub release.

The workflow triggers only when a release is published to avoid duplicate runs from tag pushes.


What It Does

  • Runs on release: published
  • Uses npm ci for deterministic dependency installation
  • Builds the plugin using npm run dist
  • Attaches publish/joplin.plugin.templates.jpl to the release
  • Fails safely if the artifact is not generated
  • Includes concurrency control to prevent overlapping runs

Safety Measures

  • No push tag trigger (avoids duplicate builds)
  • Deterministic install via npm ci
  • fail_on_unmatched_files: true ensures release fails if build artifact is missing
  • Minimal, self-contained workflow
  • Does not modify production code

Local Validation

  • Clean install succeeded
  • .jpl file generated successfully
  • Artifact path verified
  • Workflow YAML validated

Please let me know if you'd prefer running tests before packaging as part of the release workflow.

@laurent22 laurent22 closed this Feb 24, 2026
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.

2 participants