Skip to content

Commit d895d64

Browse files
committed
revert CI
1 parent 0f24577 commit d895d64

File tree

1 file changed

+65
-81
lines changed

1 file changed

+65
-81
lines changed

.github/workflows/jetbrains-release.yaml

+65-81
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ on:
1111
# release:
1212
# types: [prereleased]
1313

14-
# defaults:
15-
# run:
16-
# working-directory: extensions/intellij
14+
defaults:
15+
run:
16+
working-directory: extensions/intellij
1717

1818
concurrency:
1919
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -59,40 +59,40 @@ jobs:
5959
p12-password: ${{ secrets.APPLE_CERT_PASSWORD }}
6060

6161
# Validate wrapper
62-
# - name: Gradle Wrapper Validation
63-
# uses: gradle/actions/wrapper-validation@v3
62+
- name: Gradle Wrapper Validation
63+
uses: gradle/actions/wrapper-validation@v3
6464

6565
# # Set up Java environment for the next steps
66-
# - name: Setup Java
67-
# uses: actions/setup-java@v4
68-
# with:
69-
# distribution: zulu
70-
# java-version: 17
66+
- name: Setup Java
67+
uses: actions/setup-java@v4
68+
with:
69+
distribution: zulu
70+
java-version: 17
7171

7272
# # Setup Gradle
73-
# - name: Setup Gradle
74-
# uses: gradle/actions/setup-gradle@v3
75-
# with:
76-
# gradle-home-cache-cleanup: true
73+
- name: Setup Gradle
74+
uses: gradle/actions/setup-gradle@v3
75+
with:
76+
gradle-home-cache-cleanup: true
7777

78-
# # Set environment variables
79-
# - name: Export Properties
80-
# id: properties
81-
# shell: bash
82-
# run: |
83-
# PROPERTIES="$(./gradlew properties --console=plain -q)"
84-
# VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
85-
# # CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
86-
# CHANGELOG=""
78+
# Set environment variables
79+
- name: Export Properties
80+
id: properties
81+
shell: bash
82+
run: |
83+
PROPERTIES="$(./gradlew properties --console=plain -q)"
84+
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
85+
# CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
86+
CHANGELOG=""
8787
88-
# echo "version=$VERSION" >> $GITHUB_OUTPUT
89-
# echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
88+
echo "version=$VERSION" >> $GITHUB_OUTPUT
89+
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
9090
91-
# echo "changelog<<EOF" >> $GITHUB_OUTPUT
92-
# echo "$CHANGELOG" >> $GITHUB_OUTPUT
93-
# echo "EOF" >> $GITHUB_OUTPUT
91+
echo "changelog<<EOF" >> $GITHUB_OUTPUT
92+
echo "$CHANGELOG" >> $GITHUB_OUTPUT
93+
echo "EOF" >> $GITHUB_OUTPUT
9494
95-
# ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
95+
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
9696
9797
# # Setup Node.js
9898
- name: Use Node.js from .nvmrc
@@ -113,29 +113,29 @@ jobs:
113113
path: binary/node_modules
114114
key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }}
115115

116-
# - name: Cache gui node_modules
117-
# uses: actions/cache@v3
118-
# with:
119-
# path: gui/node_modules
120-
# key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }}
116+
- name: Cache gui node_modules
117+
uses: actions/cache@v3
118+
with:
119+
path: gui/node_modules
120+
key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }}
121121

122122
# npm install core
123123
- name: Install core node_modules
124124
run: |
125-
cd core
125+
cd ../../core
126126
npm ci
127127
128128
# npm install gui
129-
# - name: Install gui node_modules and build
130-
# run: |
131-
# cd ../../gui
132-
# npm ci
133-
# npm run build
129+
- name: Install gui node_modules and build
130+
run: |
131+
cd ../../gui
132+
npm ci
133+
npm run build
134134
135135
# Run prepackage.js script
136136
- name: Run prepackage script
137137
run: |
138-
cd extensions/vscode
138+
cd ../../extensions/vscode
139139
npm ci
140140
npm run prepackage
141141
env:
@@ -145,13 +145,13 @@ jobs:
145145
# npm install binary
146146
- name: Install binary node_modules
147147
run: |
148-
cd binary
148+
cd ../../binary
149149
npm ci
150150
151151
# Build binaries
152152
- name: Build the binaries
153153
run: |
154-
cd binary
154+
cd ../../binary
155155
npm run build
156156
157157
# - name: Code sign darwin binaries
@@ -168,22 +168,6 @@ jobs:
168168
# echo "Validating codesigning for darwin-arm64 binary"
169169
# codesign -dv --verbose=4 ../../binary/bin/darwin-arm64/continue-binary
170170

171-
- name: Upload artifact (darwin-arm64)
172-
uses: actions/upload-artifact@v4
173-
with:
174-
name: continue-binary-darwin-arm64
175-
path: ./binary/bin/darwin-arm64/
176-
177-
- name: Upload artifact (darwin-x64)
178-
uses: actions/upload-artifact@v4
179-
with:
180-
name: continue-binary-darwin-x64
181-
path: ./binary/bin/darwin-x64/
182-
183-
- name: Try to run the darwin-arm64 binary
184-
run: |
185-
./binary/bin/darwin-arm64/continue-binary
186-
187171
# - name: Sign darwin-arm64 binary
188172
# uses: lando/code-sign-action@v2
189173
# with:
@@ -211,29 +195,29 @@ jobs:
211195
# options: --options runtime --entitlements entitlements.xml
212196

213197
# Build plugin
214-
# - name: Build plugin
215-
# run: ./gradlew buildPlugin
198+
- name: Build plugin
199+
run: ./gradlew buildPlugin
216200

217-
# # Prepare plugin archive content for creating artifact
218-
# - name: Prepare Plugin Artifact
219-
# id: artifact
220-
# shell: bash
221-
# run: |
222-
# cd ../../extensions/intellij/build/distributions
223-
# echo "Builds:"
224-
# ls
225-
# echo "---"
226-
# FILENAME=`ls *.zip`
227-
# unzip "$FILENAME" -d content
228-
229-
# echo "filename=${FILENAME%.????}" >> $GITHUB_OUTPUT
230-
231-
# # Store already-built plugin as an artifact for downloading
232-
# - name: Upload artifact
233-
# uses: actions/upload-artifact@v4
234-
# with:
235-
# name: ${{ steps.artifact.outputs.filename }}
236-
# path: ./extensions/intellij/build/distributions/content/*/*
201+
# Prepare plugin archive content for creating artifact
202+
- name: Prepare Plugin Artifact
203+
id: artifact
204+
shell: bash
205+
run: |
206+
cd ../../extensions/intellij/build/distributions
207+
echo "Builds:"
208+
ls
209+
echo "---"
210+
FILENAME=`ls *.zip`
211+
unzip "$FILENAME" -d content
212+
213+
echo "filename=${FILENAME%.????}" >> $GITHUB_OUTPUT
214+
215+
# Store already-built plugin as an artifact for downloading
216+
- name: Upload artifact
217+
uses: actions/upload-artifact@v4
218+
with:
219+
name: ${{ steps.artifact.outputs.filename }}
220+
path: ./extensions/intellij/build/distributions/content/*/*
237221

238222
# Upload binaries as artifacts
239223
- name: Upload artifact (darwin-arm64)

0 commit comments

Comments
 (0)