-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
config.yml
43 lines (34 loc) · 962 Bytes
/
config.yml
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
version: 2
jobs:
build:
docker:
- image: circleci/openjdk:8-jdk
working_directory: ~/intellij-rainbow-fart
environment:
JVM_OPTS: -Xmx3200m
TERM: dumb
steps:
- checkout
- restore_cache:
keys:
- 201-dependencies-{{ checksum "build.gradle" }}
- run: ./gradlew -v
- run: ./gradlew buildPlugin
- type: shell
name: Release
command: |
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
then
./gradlew publishPlugin
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+$";
then
./gradlew publishPlugin
else
echo "Not a release, skipping"
fi
- save_cache:
paths:
- ~/.gradle
key: 201-dependencies-{{ checksum "build.gradle" }}
- store_artifacts:
path: ~/intellij-rainbow-fart/build/distributions/