Skip to content

Commit a367a43

Browse files
committed
Automated release
1 parent 345acf2 commit a367a43

File tree

4 files changed

+54
-2
lines changed

4 files changed

+54
-2
lines changed

.github/workflows/release.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Java CI for releases
5+
6+
on:
7+
release:
8+
types:
9+
- published
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
env:
19+
# see https://www.jetbrains.com/idea/download/previous.html
20+
# and https://www.jetbrains.com/intellij-repository/snapshots/
21+
22+
- IDEA_VERSION: IU-2022.2 # Oldest supported version
23+
KOTLIN_VERSION: 1.6.21
24+
SINCE_VERSION: 222
25+
UNTIL_VERSION: 230.*
26+
VERSION_SUFFIX: "-2022"
27+
28+
- IDEA_VERSION: IU-2023.3.3
29+
KOTLIN_VERSION: 1.9.10
30+
SINCE_VERSION: 230
31+
VERSION_SUFFIX: ""
32+
33+
steps:
34+
- uses: actions/checkout@v3
35+
- name: Set up JDK 17
36+
uses: actions/setup-java@v3
37+
with:
38+
java-version: 17
39+
distribution: temurin
40+
41+
- name: Build with Gradle
42+
run: |
43+
./gradlew -PideaVersion=${IDEA_VERSION} -PsinceBuildVersion=${SINCE_VERSION} -PuntilBuildVersion=${UNTIL_VERSION} -PpluginVersion=${GITHUB_REF_NAME}${VERSION_SUFFIX} check buildPlugin
44+
env: ${{ matrix.env }}
45+
46+
- name: Publish to the marketplace
47+
run: |
48+
./gradlew -PideaVersion=${IDEA_VERSION} -PsinceBuildVersion=${SINCE_VERSION} -PuntilBuildVersion=${UNTIL_VERSION} -PpluginVersion=${GITHUB_REF_NAME}${VERSION_SUFFIX} -DpublishToken="${{ secrets.PUBLISH_TOKEN }}" -DpublishChannels=default publishPlugin
49+
env: ${{ matrix.env }}

build.gradle.kts

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ val intellilangName: String by project
77
val downloadIdeaSources: String by project
88
val publishToken: String by project
99
val publishChannels: String by project
10+
val pluginVersion: String by project
11+
12+
version=pluginVersion
1013

1114
buildscript {
1215
repositories {

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kotlinVersion=1.9.10
66
kotlin.incremental=true
77
kotlin.stdlib.default.dependency=false
88

9-
buildNumber=SNAPSHOT
9+
pluginVersion=next-SNAPSHOT
1010
downloadIdeaSources=true
1111
publishToken=token
1212
publishChannels=Nightly

src/main/resources/META-INF/plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<idea-plugin>
22
<id>com.github.bjansen.intellij.pebble</id>
33
<name>Pebble</name>
4-
<version>0.10-SNAPSHOT</version>
4+
<version>will be replaced by gradle</version>
55
<vendor url="https://github.com/bjansen">Bastien Jansen</vendor>
66

77
<description><![CDATA[

0 commit comments

Comments
 (0)