-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (44 loc) · 1.02 KB
/
build.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
47
48
49
50
51
52
53
name: Build
concurrency:
group: build_${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "**.md"
- "docs/**"
push:
branches:
- main
paths-ignore:
- "**.md"
- "docs/**"
env:
JAVET_BUDDY_VERSION: 0.5.0
jobs:
build_jar:
name: Build Jar
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Setup JDK 8
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 8
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 8.10.2
- name: Build the Artifact
run: |
gradle build test generatePomFileForGeneratePomPublication
- name: Upload the Artifact
uses: actions/upload-artifact@v4
with:
name: javet-buddy-${{ env.JAVET_BUDDY_VERSION }}
path: |
build/libs/*.jar
build/libs/*.pom