-
Notifications
You must be signed in to change notification settings - Fork 26
/
.gitlab-ci.yml
55 lines (47 loc) · 864 Bytes
/
.gitlab-ci.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
54
55
image: gradle:7.3.2-jdk17
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache:
paths:
- .gradle
build:
stage: build
script:
- gradle shadowJar
artifacts:
paths:
- build/libs
deploy to maven repo:
stage: deploy
only:
- master
dependencies:
- build
script:
- ./gradlew publish --stacktrace
pages:
stage: build
only:
- master
script:
- gradle javadoc
- mv build/docs/javadoc public
artifacts:
paths:
- public
test:
stage: test
dependencies:
- build
script:
- gradle test
upload to updater:
stage: deploy
only:
- master
dependencies:
- build
script:
- cd build/libs
- files=(*)
- curl -i -F "submit=true" -F "secret=$UPLOAD_SECRET" -F "file=@${files[0]}" https://ajg0702.us/pl/updater/upload.php