-
Notifications
You must be signed in to change notification settings - Fork 22
/
.gitlab-ci.yml
66 lines (59 loc) · 1.26 KB
/
.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
56
57
58
59
60
61
62
63
64
65
66
image: gradle:7.2.0-jdk8
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache:
paths:
- .gradle
- ~/.gradle
build:
retry: 2
stage: build
script:
- gradle clean :free:shadowJar
- mkdir jars
- cp free/build/libs/ajQueue*.jar jars/
- gradle :premium:shadowJar
- cp premium/build/libs/ajQueue*.jar jars/
artifacts:
untracked: true
paths:
- jars
pages:
retry: 2
stage: build
image: gradle:6.8.3-jdk15
only:
- master
script:
- gradle :api:javadoc
- mv api/build/docs/javadoc public
artifacts:
paths:
- public
test:
retry: 2
stage: test
dependencies:
- build
script:
- gradle :free:test
deploy to maven repo:
stage: deploy
only:
- master
dependencies:
- build
script:
- gradle :api:publish --stacktrace
- gradle :common:publish
upload to updater:
stage: deploy
only:
- master
dependencies:
- build
script:
- cd jars
- files=(*)
- curl -i -F "submit=true" -F "secret=$UPLOAD_SECRET" -F "file=@${files[0]}" https://ajg0702.us/pl/updater/upload.php
- curl -i -F "submit=true" -F "secret=$UPLOAD_SECRET" -F "file=@${files[1]}" https://ajg0702.us/pl/updater/upload.php