This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts-intellij-plugin.git
The following commit(s) were added to refs/heads/main by this push:
new 8ac1cc9 ci(release): skip duplicate asset upload in publish workflow
(#80)
8ac1cc9 is described below
commit 8ac1cc99b12bcc44b0e671acdf0c4356715bbf03
Author: Lukasz Lenart <[email protected]>
AuthorDate: Tue Apr 28 14:39:19 2026 +0200
ci(release): skip duplicate asset upload in publish workflow (#80)
The Prepare Release workflow already attaches the plugin zip to the
GitHub pre-release. Re-uploading from the publish workflow fails with
"asset under the same name already exists" once the pre-release is
promoted. Removing the redundant step also keeps the published bits
identical to what PMC voted on.
---
.github/workflows/release.yml | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9de90d6..1b4fbab 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -79,6 +79,8 @@ jobs:
./gradlew patchChangelog
# Publish the plugin to JetBrains Marketplace
+ # The release zip is already attached to the GitHub release by the
+ # Prepare Release workflow (the artifact PMC voted on); no upload here.
- name: Publish Plugin
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
@@ -87,12 +89,6 @@ jobs:
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
run: ./gradlew publishPlugin
- # Upload artifact as a release asset
- - name: Upload Release Asset
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh release upload ${{ github.event.release.tag_name }}
./build/distributions/*
-
# Create a pull request with changelog update
- name: Create Pull Request
if: ${{ steps.properties.outputs.changelog != '' }}