File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : " [M] Plugin and CLI: publish as archives"
2
2
3
3
on :
4
+ workflow_call :
5
+ inputs :
6
+ version-postfix :
7
+ type : string
8
+ description : " It adds postfix (alpha or beta) to version (optional)."
9
+ required : false
10
+ default : no-postfix
11
+
4
12
workflow_dispatch :
5
13
inputs :
6
14
version-postfix :
13
21
- alpha
14
22
- beta
15
23
24
+ env :
25
+ # Environment variable setting gradle options.
26
+ GRADLE_OPTS : " -XX:MaxHeapSize=2048m -Dorg.gradle.jvmargs='-XX:MaxHeapSize=2048m -XX:MaxPermSize=512m -javaagent:/tmp/jmx-exporter.jar=12345:/tmp/jmx-exporter.yml -Dorg.gradle.daemon=false' -Dorg.gradle.daemon=false"
27
+
16
28
jobs :
17
29
publish_plugin_and_cli :
18
30
runs-on : ubuntu-20.04
19
31
container : unittestbot/java-env:java11-zulu-jdk-fx-gradle7.4.2-kotlinc1.7.0
20
32
21
33
steps :
34
+ - name : Print environment variables
35
+ run : printenv
36
+
22
37
- uses : actions/checkout@v3
23
38
24
39
- name : Set environment variables
25
40
run : |
41
+ # "You can make an environment variable available to any subsequent steps in a workflow job by
42
+ # defining or updating the environment variable and writing this to the GITHUB_ENV environment file."
26
43
echo "VERSION="$(date +%Y).$(date +%-m)"" >> $GITHUB_ENV
27
44
echo "POSTFIX=${{ github.event.inputs.version-postfix }}" >> $GITHUB_ENV
28
45
37
54
cd utbot-intellij/build/distributions
38
55
unzip utbot-intellij-${{ env.VERSION }}.zip
39
56
rm utbot-intellij-${{ env.VERSION }}.zip
40
-
41
57
- name : Archive UTBot IntelliJ IDEA plugin
42
58
uses : actions/upload-artifact@v3
43
59
with :
46
62
47
63
- name : Build UTBot CLI
48
64
run : |
49
- export KOTLIN_HOME="/usr"
50
65
cd utbot-cli
51
- gradle clean build --no-daemon -PsemVer=${{ env.VERSION }}
66
+ gradle build --no-daemon -PsemVer=${{ env.VERSION }}
52
67
53
68
- name : Archive UTBot CLI
54
69
uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments