Skip to content

Commit ea72e9e

Browse files
authored
Add release action script for IJwB (#7890)
1 parent 9765195 commit ea72e9e

File tree

1 file changed

+41
-9
lines changed

1 file changed

+41
-9
lines changed

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

Lines changed: 41 additions & 9 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
68+
69+
- name: Download Oldest Plugin Zip
70+
uses: actions/download-artifact@v5
71+
with:
72+
name: intellij-oss-oldest-stable
73+
74+
- name: Download Latest Plugin Zip
75+
uses: actions/download-artifact@v5
76+
with:
77+
name: intellij-ue-oss-latest-stable
6078

6179
- name: Download Oldest Plugin Zip
6280
uses: actions/download-artifact@v5
6381
with:
64-
name: clion-oss-oldest-stable
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,12 +106,22 @@ 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
110+
111+
- name: Download Oldest Plugin Zip
112+
uses: actions/download-artifact@v5
113+
with:
114+
name: intellij-oss-oldest-stable
115+
116+
- name: Download Latest Plugin Zip
117+
uses: actions/download-artifact@v5
118+
with:
119+
name: intellij-ue-oss-latest-stable
88120

89121
- name: Download Oldest Plugin Zip
90122
uses: actions/download-artifact@v5
91123
with:
92-
name: clion-oss-oldest-stable
124+
name: intellij-ue-oss-oldest-stable
93125

94126
- name: Upload Releases
95127
run: |

0 commit comments

Comments
 (0)