Skip to content

Commit 5a3f458

Browse files
authored
Create snapshot
1 parent c870a12 commit 5a3f458

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/snapshot.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Snapshot
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
greet:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Set LD_VERSION
17+
run: echo ::set-env name=LD_VERSION::0.0
18+
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x gradlew
26+
27+
- name: Build the plugin
28+
run: ./gradlew buildPlugin
29+
env:
30+
LD_VERSION: ${{ env.LD_VERSION }}
31+
32+
- name: Verify plugin
33+
id: verify
34+
uses: ChrisCarini/intellij-platform-plugin-verifier-action@latest
35+
with:
36+
ide-versions: |
37+
ideaIC:2019.3
38+
ideaIC:2020.1
39+
ideaIC:2020.2
40+
ideaIC:LATEST-EAP-SNAPSHOT
41+
42+
- name: Print verify contents
43+
run: |
44+
echo "The log file path is: ${{steps.verify.outputs.verification-output-log-filename}}" ;
45+
cat ${{steps.verify.outputs.verification-output-log-filename}}
46+
47+
- name: Upload Artifact
48+
uses: actions/upload-artifact@v2
49+
with:
50+
# TODO: This uploads a zip called `distributions`; see what we can do to just upload the produced plugin itself.
51+
name: leetcode-editor-snapshot
52+
path: build/distributions/leetcode-editor-${{ env.LD_VERSION }}.zip

0 commit comments

Comments
 (0)