-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
40 lines (34 loc) · 989 Bytes
/
.gitlab-ci.yml
File metadata and controls
40 lines (34 loc) · 989 Bytes
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
image: openjdk:8-jdk
variables:
CACHE_DIR: "$CI_PROJECT_DIR/build"
CACHE_DIR2: "$CI_PROJECT_DIR/.gradle"
ORIG_ARTIFACTS: "$CI_PROJECT_DIR/build/libs/NetherEssence-Forge-1.11.2-*.jar"
ARTIFACTS: "$CI_PROJECT_DIR/NetherEssence-Forge-1.11.2-*.jar"
cache:
paths:
- $CACHE_DIR
- $CACHE_DIR2
key: "$CI_BUILD_REF_NAME"
untracked: false
stages:
- deploy
deploy:
stage: deploy
script:
- ./gradlew clean build curseforge uploadToModsIO -PcurseForgeApiKey=$curseForgeApiKey -PmodsioApiKey=$modsioApiKey
- cp $ORIG_ARTIFACTS .
when: manual
artifacts:
name: "NetherEssence-Forge-1.11.2-$(cat $CACHE_DIR/.version)"
paths:
- $ARTIFACTS
deployMaven:
stage: deploy
script:
- ./gradlew clean build uploadArchives curseforge uploadToModsIO -PcurseForgeApiKey=$curseForgeApiKey -PmodsioApiKey=$modsioApiKey
- cp $ORIG_ARTIFACTS .
when: manual
artifacts:
name: "NetherEssence-Forge-1.11.2-$(cat $CACHE_DIR/.version)"
paths:
- $ARTIFACTS