Skip to content

Commit e4788e5

Browse files
authored
Merge pull request #3547 from Kilo-Org/revert-3427-publish-manually
Revert "Make publishing of the extension a manual action"
2 parents f5e37f1 + 16b2180 commit e4788e5

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/marketplace-publish.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Publish Extension
22
on:
3+
pull_request:
4+
types: [closed]
35
workflow_dispatch:
46

57
env:
@@ -14,6 +16,11 @@ jobs:
1416
runs-on: ubuntu-latest
1517
permissions:
1618
contents: write # Required for pushing tags.
19+
if: >
20+
( github.event_name == 'pull_request' &&
21+
github.event.pull_request.base.ref == 'main' &&
22+
contains(github.event.pull_request.title, 'Changeset version bump') ) ||
23+
github.event_name == 'workflow_dispatch'
1724
steps:
1825
- name: Checkout code
1926
uses: actions/checkout@v4
@@ -103,6 +110,11 @@ jobs:
103110
publish-jetbrains:
104111
needs: publish-extension
105112
runs-on: ubuntu-latest
113+
if: >
114+
( github.event_name == 'pull_request' &&
115+
github.event.pull_request.base.ref == 'main' &&
116+
contains(github.event.pull_request.title, 'Changeset version bump') ) ||
117+
github.event_name == 'workflow_dispatch'
106118
steps:
107119
- name: Checkout code
108120
uses: actions/checkout@v4
@@ -165,11 +177,11 @@ jobs:
165177
path: jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}
166178
- name: JetBrains Marketplace Publisher
167179
run: |
168-
curl \
169-
-X POST \
170-
-H "Authorization: Bearer ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}" \
171-
-F "file=@jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}" \
172-
-F "pluginId=28350" \
173-
-F "channel=stable" \
174-
-F "isHidden=false" \
175-
https://plugins.jetbrains.com/plugin/uploadPlugin
180+
curl \
181+
-X POST \
182+
-H "Authorization: Bearer ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}" \
183+
-F "file=@jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}" \
184+
-F "pluginId=28350" \
185+
-F "channel=stable" \
186+
-F "isHidden=false" \
187+
https://plugins.jetbrains.com/plugin/uploadPlugin

0 commit comments

Comments
 (0)