Skip to content

Commit 81d64f5

Browse files
CopilotMte90
andcommitted
Fix double-zip artifact issue
- Rename plugin ZIP to a consistent name before upload - This prevents GitHub Actions from creating a zip-within-zip - Users can now download and install the artifact directly Co-authored-by: Mte90 <[email protected]>
1 parent 4c487e5 commit 81d64f5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/kotlin-ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,18 @@ jobs:
7373
path: gradle-build.log
7474
if: always()
7575

76+
- name: Rename plugin artifact
77+
run: |
78+
cd ide-plugins/build/distributions
79+
PLUGIN_FILE=$(ls *.zip | head -n 1)
80+
if [ -n "$PLUGIN_FILE" ]; then
81+
cp "$PLUGIN_FILE" intellij-plugin.zip
82+
fi
83+
if: success()
84+
7685
- name: Upload plugin artifact
7786
uses: actions/upload-artifact@v4
7887
with:
7988
name: intellij-plugin-pr-${{ github.event.pull_request.number || github.run_number }}
80-
path: ide-plugins/build/distributions/*.zip
89+
path: ide-plugins/build/distributions/intellij-plugin.zip
8190
if: success()

0 commit comments

Comments
 (0)