forked from wildex999/TickDynamic
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
42 lines (36 loc) · 1.04 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
image: openjdk:8-jdk
variables:
CACHE_DIR: "$CI_PROJECT_DIR/build"
CACHE_DIR2: "$CI_PROJECT_DIR/.gradle"
ORIG_ARTIFACTS: "$CI_PROJECT_DIR/build/libs/TickDynamic-*.jar"
ARTIFACTS: "$CI_PROJECT_DIR/TickDynamic-*.jar"
cache:
paths:
- $CACHE_DIR
- $CACHE_DIR2
key: "$CI_BUILD_REF_NAME"
untracked: false
stages:
- deploy
deploy:
stage: deploy
script:
- ./gradlew clean
- ./gradlew build curseforge uploadToModsIO -PcurseForgeApiKey=$curseForgeApiKey -PmodsioApiKey=$modsioApiKey --stacktrace --continue
- cp $ORIG_ARTIFACTS .
when: manual
artifacts:
name: "TickDynamic-1.12.2-$(cat $CACHE_DIR/.version)"
paths:
- $ARTIFACTS
deployMaven:
stage: deploy
script:
- ./gradlew clean
- ./gradlew build uploadArchives curseforge uploadToModsIO -PksAlias=$ksAlias -Pks=$ks -PksPass=$ksPass -PcurseForgeApiKey=$curseForgeApiKey -PmodsioApiKey=$modsioApiKey --stacktrace --continue
- cp $ORIG_ARTIFACTS .
when: manual
artifacts:
name: "TickDynamic-1.12.2-$(cat $CACHE_DIR/.version)"
paths:
- $ARTIFACTS