-
-
Notifications
You must be signed in to change notification settings - Fork 28
48 lines (45 loc) · 1.32 KB
/
Copy pathintellij.yml
File metadata and controls
48 lines (45 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: IntelliJ Plugin
on:
push:
paths:
- "src/IntelliJ/**"
- ".github/workflows/intellij.yml"
pull_request:
paths:
- "src/IntelliJ/**"
- ".github/workflows/intellij.yml"
env:
VERSION: 1.41.${{ github.run_number }}
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
- name: Cache Gradle
uses: actions/cache@v5
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Update Version
working-directory: src/IntelliJ
shell: pwsh
run: |
((Get-Content -Path gradle.properties -Raw) `
-Replace "pluginVersion=0.1.0", "pluginVersion=${{ env.VERSION }}") `
| Set-Content -Path gradle.properties
- name: Build IntelliJ Plugin
working-directory: src/IntelliJ
run: ./gradlew buildPlugin --no-daemon
- name: Archive plugin artifact
uses: actions/upload-artifact@v7
with:
name: intellij-plugin
path: src/IntelliJ/build/distributions/*.zip