forked from GregTechCE/GregTech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
49 lines (44 loc) · 800 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
image: anapsix/alpine-java:8_jdk
before_script:
- which java
- which javac
stages:
- build
- deploy
- manual_deploy
build:
stage: build
before_script:
- ./gradlew setupCiWorkspace
- ./gradlew ciWriteBuildNumber
script:
- ./gradlew build
artifacts:
paths:
- build/libs/*.jar
expire_in: 1 month
production:
stage: deploy
script: ./gradlew curseforge bintrayUpload postDiscordNotification
retry: 2
when: on_success
artifacts:
paths:
- build/libs/*.jar
only:
refs:
- tags
manual_production:
stage: manual_deploy
script: ./gradlew curseforge postDiscordNotification bintrayUpload
retry: 2
when: manual
artifacts:
paths:
- build/libs/*.jar
only:
refs:
- master
except:
refs:
- tags