-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
40 lines (35 loc) · 965 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
variables:
CACHE_DIR: "$CI_PROJECT_DIR/build"
CACHE_DIR2: "$CI_PROJECT_DIR/.gradle"
ORIG_ARTIFACTS: "$CI_PROJECT_DIR/build/libs/AdobeBlocks-*.jar"
ARTIFACTS: "$CI_PROJECT_DIR/AdobeBlocks-*.jar"
cache:
paths:
- $CACHE_DIR
- $CACHE_DIR2
key: "$CI_BUILD_REF_NAME"
untracked: false
stages:
- deploy
deploy:
stage: deploy
script:
- ./gradlew clean
- ./gradlew en2ud build curseforge uploadToModsIO -PcurseForgeApiKey=$curseForgeApiKey -PmodsioApiKey=$modsioApiKey
- cp $ORIG_ARTIFACTS .
when: manual
artifacts:
name: "AdobeBlocks-1.12.2-$(cat $CACHE_DIR/.version)"
paths:
- $ARTIFACTS
deployMaven:
stage: deploy
script:
- ./gradlew clean
- ./gradlew en2ud build uploadArchives curseforge uploadToModsIO -PcurseForgeApiKey=$curseForgeApiKey -PmodsioApiKey=$modsioApiKey
- cp $ORIG_ARTIFACTS .
when: manual
artifacts:
name: "AdobeBlocks-1.12.2-$(cat $CACHE_DIR/.version)"
paths:
- $ARTIFACTS