File tree Expand file tree Collapse file tree 2 files changed +291
-294
lines changed
Expand file tree Collapse file tree 2 files changed +291
-294
lines changed Original file line number Diff line number Diff line change 1010 paths :
1111 - ' ide-plugins/**'
1212 release :
13- types : [created, published]
13+ types : [published]
1414
1515jobs :
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 }}
You can’t perform that action at this time.
0 commit comments