-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
46 lines (41 loc) · 1.11 KB
/
.drone.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
44
45
46
kind: pipeline
name: default
steps:
# Compile the code/run tests
- name: build
image: keynmol/weaver-scala-sbt-yarn:latest
commands:
- sbt ci
- echo Built $(cat version)
environment:
COURSIER_CACHE: .cache/coursier
SBT_OPTS: "-XX:+UseG1GC -XX:MaxMetaspaceSize=2g -Xms1g -Xmx2g -Xss2M -XX:+CMSClassUnloadingEnabled"
volumes:
- name: sbt-cache
path: /root/.sbt
- name: intellij-cache
path: /root/.weaver-intellijPluginIC
# Uploads intellij plugin to the github release
- name: publish-intellij-plugin
image: keynmol/weaver-scala-sbt-yarn:latest
commands:
- sbt packageIntellijPlugin
- amm scripts/releasePlugin.sc $(cat intellijPlugin)
environment:
COURSIER_CACHE: .cache/coursier
SBT_OPTS: "-XX:+UseG1GC -XX:MaxMetaspaceSize=2g -Xms1g -Xmx2g -Xss2M -XX:+CMSClassUnloadingEnabled"
GITHUB_TOKEN:
from_secret: github_api_token
when:
ref:
- refs/tags/v*
volumes:
- name: sbt-cache
path: /root/.sbt
- name: intellij-cache
path: /root/.weaver-intellijPluginIC
volumes:
- name: sbt-cache
temp: {}
- name: intellij-cache
temp: {}