@@ -2,49 +2,11 @@ name: "Plugin and CLI: publish as archives"
22on :
33 push :
44 branches : [main]
5-
5+
66jobs :
7+ build_and_run_tests :
8+ uses : ./.github/workflows/build-and-run-tests-from-branch.yml
9+
710 publish_plugin_and_cli :
8- runs-on : ubuntu-20.04
9-
10- steps :
11- - uses : actions/checkout@v2
12- - uses : actions/setup-java@v2
13- with :
14- java-version : ' 11'
15- distribution : ' zulu'
16- java-package : jdk+fx
17- - uses : gradle/gradle-build-action@v2
18- with :
19- gradle-version : 7.4.2
20-
21- - name : Set environment variables
22- run :
23- echo "VERSION="$(date +%Y).$(date +%-m)"" >> $GITHUB_ENV
24-
25- - name : Build UTBot IntelliJ IDEA plugin
26- run : |
27- export KOTLIN_HOME="/usr"
28- gradle buildPlugin --no-daemon -PsemVer=${{ env.VERSION }}
29- cd utbot-intellij/build/distributions
30- unzip utbot-intellij-${{ env.VERSION }}.zip
31- rm utbot-intellij-${{ env.VERSION }}.zip
32-
33- - name : Archive UTBot IntelliJ IDEA plugin
34- uses : actions/upload-artifact@v2
35- with :
36- name : utbot-intellij-${{ env.VERSION }}
37- path : utbot-intellij/build/distributions/*
38-
39- - name : Build UTBot CLI
40- run : |
41- export KOTLIN_HOME="/usr"
42- cd utbot-cli
43- gradle clean build --no-daemon -PsemVer=${{ env.VERSION }}
44- cd build/libs
45-
46- - name : Archive UTBot CLI
47- uses : actions/upload-artifact@v2
48- with :
49- name : utbot-cli-${{ env.VERSION }}
50- path : utbot-cli/build/libs/utbot-cli-${{ env.VERSION }}.jar
11+ needs : build_and_run_tests
12+ uses : ./.github/workflows/publish-plugin-and-cli-from-branch.yml
0 commit comments