Skip to content

Fix IntelliJ plugin publishing - combine signPlugin and publishPlugin - #128

Merged
j8d merged 3 commits into
mainfrom
feature/add-workflow-environment-protection
May 4, 2026
Merged

j8d merged 3 commits into
mainfrom
feature/add-workflow-environment-protection

Conversation

@j8d

@j8d j8d commented May 4, 2026

Copy link
Copy Markdown
Owner

Problem

The 0.2.4 IntelliJ plugin release is broken on JetBrains Marketplace with error:

The plugin archive file cannot be extracted

Root Cause

The IntelliJ Platform Gradle Plugin was upgraded from v2.13.1 (0.2.3) to v2.15.0 (0.2.4). Starting in v2.14.0, the plugin defaults signing properties to environment variables CERTIFICATE_CHAIN, PRIVATE_KEY, and PRIVATE_KEY_PASSWORD.

In the release workflow, signPlugin and publishPlugin ran as separate Gradle invocations with different env vars. When publishPlugin ran without the signing env vars, the convention providers resolved to absent values, corrupting the published artifact.

Fix

Combine signPlugin and publishPlugin into a single Gradle invocation with all required env vars present.

After Merge

Re-run the release workflow for IntelliJ to publish a fixed 0.2.4 (or bump to 0.2.5).

Ryan Stutzman and others added 3 commits April 29, 2026 11:31
- Require approval from 'production' environment before publishing
- Applies to both VS Code and IntelliJ release jobs
- Prevents unauthorized releases to marketplaces
… invocation

IntelliJ Platform Gradle Plugin v2.14.0+ defaults signing properties to
CERTIFICATE_CHAIN/PRIVATE_KEY/PRIVATE_KEY_PASSWORD env vars. Running
publishPlugin as a separate invocation without these env vars caused the
published artifact to be corrupted (marketplace error: 'plugin archive file
cannot be extracted').

Combines both tasks into a single invocation so all signing and publishing
env vars are available together.
@j8d
j8d enabled auto-merge (rebase) May 4, 2026 21:00
@j8d
j8d disabled auto-merge May 4, 2026 21:05
@j8d
j8d merged commit 5fefdcd into main May 4, 2026
3 checks passed
@j8d
j8d deleted the feature/add-workflow-environment-protection branch May 4, 2026 21:05
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