forked from UnitTestBot/UTBotJava
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.53 KB
/
publish-plugin-and-cli.yml
File metadata and controls
49 lines (44 loc) · 1.53 KB
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
47
48
49
name: Publish utbot-intellij and utbot-cli as an archive
on:
push:
branches: [main]
jobs:
publish_utbot_java:
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
runs-on: ubuntu-20.04
env:
VERSION: ${{ format('1.0.{0}', github.run_number) }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'liberica'
java-package: jdk+fx
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 6.8
- name: Build UTBot IntelliJ IDEA plugin
run: |
export KOTLIN_HOME="/usr"
cd utbot-intellij
gradle clean build
cd build/libs
mv $(find . -type f -iname "utbot-intellij*.jar") utbot-intellij-${{ env.VERSION }}.jar
- name: Archive UTBot IntelliJ IDEA plugin
uses: actions/upload-artifact@v2
with:
name: utbot-intellij-${{ env.VERSION }}
path: utbot-intellij/build/libs/utbot-intellij-${{ env.VERSION }}.jar
- name: Build UTBot CLI
run: |
export KOTLIN_HOME="/usr"
cd utbot-cli
gradle clean build
cd build/libs
mv $(find . -type f -iname "utbot-cli*.jar") utbot-cli-${{ env.VERSION }}.jar
- name: Archive UTBot CLI
uses: actions/upload-artifact@v2
with:
name: utbot-cli-${{ env.VERSION }}
path: utbot-cli/build/libs/utbot-cli-${{ env.VERSION }}.jar