Skip to content

Commit 57498e4

Browse files
CopilotMte90
andcommitted
Address PR feedback: remove 'created' trigger, fix release upload path, convert to jQuery
Co-authored-by: Mte90 <[email protected]>
1 parent 5457bcf commit 57498e4

File tree

2 files changed

+291
-294
lines changed

2 files changed

+291
-294
lines changed

.github/workflows/kotlin-ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
paths:
1111
- 'ide-plugins/**'
1212
release:
13-
types: [created, published]
13+
types: [published]
1414

1515
jobs:
1616
build-kotlin-plugin:
@@ -84,10 +84,12 @@ jobs:
8484
mkdir -p plugin-extracted
8585
# Extract the plugin zip
8686
unzip -q "$PLUGIN_FILE" -d plugin-extracted/
87-
# Remove the original zip
88-
rm "$PLUGIN_FILE"
87+
# For non-release builds, remove the original zip
88+
if [ "${{ github.event_name }}" != "release" ]; then
89+
rm "$PLUGIN_FILE"
90+
fi
8991
fi
90-
if: success() && github.event_name != 'release'
92+
if: success()
9193

9294
- name: Upload plugin artifact
9395
uses: actions/upload-artifact@v4
@@ -100,6 +102,6 @@ jobs:
100102
if: github.event_name == 'release'
101103
uses: softprops/action-gh-release@v1
102104
with:
103-
files: ide-plugins/build/distributions/*.zip
105+
files: ide-plugins/build/distributions/plugin-extracted/
104106
env:
105107
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)