mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-16 10:45:15 +01:00
use system env instead of project property
This commit is contained in:
parent
05aed8e925
commit
6240ea5029
@ -22,4 +22,4 @@ install: true
|
||||
script:
|
||||
# Set up git user name and tag this commit
|
||||
- if [ -z $TRAVIS_TAG ] && [ -z $(git tag -l --points-at HEAD) ]; then git config --local user.name "creeper12313321"; git config --local user.email "7974274+creeper123123321@users.noreply.github.com"; export TRAVIS_TAG=build-$TRAVIS_JOB_NUMBER; git tag $TRAVIS_TAG; fi
|
||||
- ./gradlew clean build
|
||||
- ./gradlew
|
||||
|
@ -75,10 +75,14 @@ dependencies {
|
||||
//include("io.github.cottonmc:cotton-client-commands:1.0.0+1.15.2")
|
||||
}
|
||||
|
||||
if (!System.getenv()["curse_api_key"].isNullOrBlank() && branch.startsWith("mc-")) {
|
||||
defaultTasks("clean", "build", "curseforge")
|
||||
} else {
|
||||
defaultTasks("clean", "build")
|
||||
}
|
||||
|
||||
curseforge {
|
||||
if (project.hasProperty("curse_api_key")) {
|
||||
apiKey = project.properties["curse_api_key"]
|
||||
}
|
||||
apiKey = System.getenv()["curse_api_key"]
|
||||
project(closureOf<com.matthewprenger.cursegradle.CurseProject> {
|
||||
id = "391298"
|
||||
changelog = "A changelog can be found at https://github.com/ViaVersion/ViaFabric/commits"
|
||||
|
Loading…
Reference in New Issue
Block a user