forked from Nomifactory/Nomifactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (55 loc) · 1.25 KB
/
.travis.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
# Only the main branch and tags
branches:
only:
- dev
- /^v\d+\.\d+\.\d+.*$/
cache:
directories:
- .cache
language: node_js
node_js:
- 13
# Buildtools are going to take care of building the modpack
before_install:
- cd ./buildtools
# Check if all necessary env. variables are set
before_script:
- gulp travisChecks
# Build the modpack and run post-build tasks.
script:
- . ../.travis.sh && gulp travis
- cd ../
deploy:
# Deploy release
- provider: releases
skip_cleanup: true
token: "$GITHUB_TOKEN"
file:
- ./build/$SERVER_ARCHIVE.zip
- ./build/$CLIENT_ARCHIVE.zip
- ./build/lang.zip
on:
tags: true
condition: $TAGGED_RELEASE = true
# Deploy release to CurseForge
- provider: script
edge: true
skip_cleanup: true
script: cd ./buildtools && npx gulp deployCurseForge && cd ../
on:
tags: true
condition: $TAGGED_RELEASE = true
# Deploy pre-release
- provider: releases
overwrite: true
skip_cleanup: true
token: "$GITHUB_TOKEN"
tag_name: latest-dev-preview
prerelease: true
file:
- ./build/$SERVER_ARCHIVE.zip
- ./build/$CLIENT_ARCHIVE.zip
- ./build/lang.zip
on:
branch: dev
condition: $TAGGED_RELEASE = false