Skip to content

Add tag-driven release workflow that publishes the .difypkg - #4

Merged
shixish merged 1 commit into
mainfrom
ci/release-difypkg
Nov 28, 2026
Merged

shixish merged 1 commit into
mainfrom
ci/release-difypkg

Conversation

@shixish

@shixish shixish commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Adds .github/workflows/release.yml, which builds the Dify plugin package and publishes it on a GitHub Release so Dify's "Install plugin from GitHub" works.

What it does

  • Trigger: pushing a v* tag. workflow_dispatch is a dry run that builds the package and uploads it as the difypkg artifact. A dispatch never creates or edits a Release, even on a tag ref.
  • verify: the tag must equal version in diffbot/manifest.yaml, which must equal [project] version in diffbot/pyproject.toml. CHANGELOG.md must have a non-empty ## [X.Y.Z] section. An RC may reuse the base section.
  • gates: runs the same offline pytest -q as test.yml. No secrets.
  • package: installs dify CLI 0.6.15 (dify-plugin-linux-amd64) from langgenius/dify-plugin-daemon and checks its SHA256 against the GitHub asset digest. It then runs dify plugin package ./diffbot -o diffbot-X.Y.Z.difypkg, checks the size and contents, adds dify plugin checksum to the job summary, and uploads the artifact.
  • github-release: runs only on a tag push and is the only job with contents: write; the workflow default is contents: read. Release notes come from the CHANGELOG section. Versions containing - are marked --prerelease, and the tag is checked with --verify-tag. If the Release already exists, its notes are left alone and only the asset is replaced.

Other changes

  • CHANGELOG version headings now use Keep a Changelog format, ## [X.Y.Z] (only the heading lines changed).
  • README, diffbot/README.md and SUBMISSION.md now say the CI-built package is the official one. Local packaging is still documented as a dev option.

Notes

  • No .difypkg is tracked, and dist/ was already gitignored. Official packages come only from CI.
  • The workflow does not submit to the Marketplace or sign the package.
  • Before tagging v0.2.0, the ## [0.2.0] CHANGELOG body still says "Not released: no tag, no marketplace submission." That text becomes the release notes, so update it (and date the heading) in a small PR first.

Code by Claude Code (Opus), reviewed before opening.

Pushing a vX.Y.Z tag runs verify (tag == manifest.yaml == pyproject.toml,
CHANGELOG "## [X.Y.Z]" section), the offline pytest gates, packages
./diffbot with a pinned, SHA256-verified dify CLI 0.6.15, and creates a
GitHub Release with the CHANGELOG notes and diffbot-X.Y.Z.difypkg
attached (Pre-release for "-" versions), so Dify's "Install plugin from
GitHub" works. workflow_dispatch is a dry run that uploads the package
as an artifact and never creates a Release. No marketplace submission,
no signing, no secrets.

CHANGELOG version headings move to Keep a Changelog "## [X.Y.Z]".
README, diffbot/README.md and SUBMISSION.md describe the CI-built
package as the official one; local packaging stays a dev option.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shixish
shixish merged commit 05a4fbf into main Nov 28, 2026
1 check passed
@shixish
shixish deleted the ci/release-difypkg branch November 28, 2026 05:33
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