Skip to content

Commit 25623c4

Browse files
committed
Add release action script for IJwB (#7890)
1 parent 9765195 commit 25623c4

File tree

1 file changed

+43
-10
lines changed

1 file changed

+43
-10
lines changed

.github/workflows/release.yml renamed to .github/workflows/release-ijwb.yml

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Release IJwB
22

33
on:
44
workflow_dispatch:
@@ -10,9 +10,13 @@ on:
1010

1111
jobs:
1212
build:
13+
permissions:
14+
contents: read
15+
actions: write
16+
1317
strategy:
1418
matrix:
15-
product: [clion-oss-latest-stable, clion-oss-oldest-stable]
19+
product: [intellij-oss-latest-stable, intellij-oss-oldest-stable, intellij-ue-oss-latest-stable, intellij-ue-oss-oldest-stable]
1620

1721
runs-on: ubuntu-latest
1822

@@ -32,13 +36,13 @@ jobs:
3236
echo "VERSION = '${{ inputs.version }}'" > version.bzl
3337
3438
- name: Build Plugin Zip
35-
run: bazel build //clwb:clwb_bazel_zip --define=ij_product=${{ matrix.product }}
39+
run: bazel build //ijwb:ijwb_bazel_zip --define=ij_product=${{ matrix.product }}
3640

3741
- name: Rename Plugin Zip
3842
run: |
3943
bazel build //intellij_platform_sdk:build_name --define=ij_product=${{ matrix.product }}
4044
mkdir out
41-
mv bazel-bin/clwb/clwb_bazel.zip out/$(cat bazel-bin/intellij_platform_sdk/build_name.txt).zip
45+
mv bazel-bin/ijwb/ijwb_bazel.zip out/$(cat bazel-bin/intellij_platform_sdk/build_name.txt).zip
4246
4347
- name: Upload Plugin Zip
4448
uses: actions/upload-artifact@v4
@@ -48,6 +52,10 @@ jobs:
4852
retention-days: 1
4953

5054
gh-release:
55+
permissions:
56+
contents: write
57+
actions: read
58+
5159
needs: build
5260

5361
runs-on: ubuntu-latest
@@ -56,26 +64,40 @@ jobs:
5664
- name: Download Latest Plugin Zip
5765
uses: actions/download-artifact@v5
5866
with:
59-
name: clion-oss-latest-stable
67+
name: intellij-oss-latest-stable
6068

6169
- name: Download Oldest Plugin Zip
6270
uses: actions/download-artifact@v5
6371
with:
64-
name: clion-oss-oldest-stable
72+
name: intellij-oss-oldest-stable
73+
74+
- name: Download Latest UE Plugin Zip
75+
uses: actions/download-artifact@v5
76+
with:
77+
name: intellij-ue-oss-latest-stable
78+
79+
- name: Download Oldest UE Plugin Zip
80+
uses: actions/download-artifact@v5
81+
with:
82+
name: intellij-ue-oss-oldest-stable
6583

6684
- name: Create Release
6785
uses: softprops/action-gh-release@v2
6886
with:
6987
files: "*.zip"
7088
tag_name: ${{ inputs.version }}
71-
name: "CLwB Release ${{ inputs.version }}"
89+
name: "IJwB Release ${{ inputs.version }}"
7290
draft: false
7391
prerelease: false
7492
generate_release_notes: true
7593
env:
7694
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7795

7896
jb-release:
97+
permissions:
98+
contents: none
99+
actions: read
100+
79101
needs: build
80102

81103
runs-on: ubuntu-latest
@@ -84,13 +106,24 @@ jobs:
84106
- name: Download Latest Plugin Zip
85107
uses: actions/download-artifact@v5
86108
with:
87-
name: clion-oss-latest-stable
109+
name: intellij-oss-latest-stable
88110

89111
- name: Download Oldest Plugin Zip
90112
uses: actions/download-artifact@v5
91113
with:
92-
name: clion-oss-oldest-stable
114+
name: intellij-oss-oldest-stable
115+
116+
- name: Download Latest UE Plugin Zip
117+
uses: actions/download-artifact@v5
118+
with:
119+
name: intellij-ue-oss-latest-stable
120+
121+
- name: Download Oldest UE Plugin Zip
122+
uses: actions/download-artifact@v5
123+
with:
124+
name: intellij-ue-oss-oldest-stable
93125

94126
- name: Upload Releases
95127
run: |
96-
find . -type f -name "*.zip" -exec curl -i --header "Authorization: Bearer ${{ secrets.MARKETPLACE_TOKEN }}" -F pluginId=9554 -F file=@{} -F isHidden=true -F channel=stable https://plugins.jetbrains.com/plugin/uploadPlugin -o /dev/null \;
128+
find . -type f -name "*.zip" -exec curl -i --header "Authorization: Bearer ${{ secrets.MARKETPLACE_TOKEN_IJWB }}" -F pluginId=8609 -F file=@{} -F isHidden=true -F channel=stable https://plugins.jetbrains.com/plugin/uploadPlugin -o /dev/null \;
129+
find . -type f -name "*.zip" -exec curl -i --header "Authorization: Bearer ${{ secrets.MARKETPLACE_TOKEN_IJWB }}" -F pluginId=8609 -F file=@{} -F isHidden=true -F channel=beta https://plugins.jetbrains.com/plugin/uploadPlugin -o /dev/null \;

0 commit comments

Comments
 (0)