This repository was archived by the owner on Mar 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed
Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,18 @@ after_success:
3232- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
3333- export GIT_ORIGIN_URL=`git config --get remote.origin.url`
3434- gradle publish
35- - cd ..
36- - git clone -b maven-repo $GIT_ORIGIN_URL nyaautils-mvn
37- - cp -r NyaaUtils/build/repo/cat nyaautils-mvn/
38- - cd nyaautils-mvn
39- - git config credential.helper "store --file=.git/credentials"
40- - echo "https://$GITHUB_KEY:@github.com" > .git/credentials
41- - git add .
42- - git commit -m "auto generated maven repo"
43- - git push --follow-tags
35+ - |
36+ if [ $PUBLISH_MAVEN ]; then
37+ cd ..;
38+ git clone -b maven-repo $MAVEN_REPO_URL mvn;
39+ cp -r NyaaUtils/build/repo/cat mvn/;
40+ cd mvn;
41+ git config credential.helper "store --file=.git/credentials";
42+ echo "https://$GITHUB_KEY:@github.com" > .git/credentials;
43+ git add .;
44+ git commit -m "auto generated maven repo";
45+ git push --follow-tags;
46+ fi
4447 - cd ../NyaaUtils
4548deploy :
4649 skip_cleanup : true
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ repositories {
4141
4242 maven {
4343 name ' NyaaCore'
44- url ' https://raw.githubusercontent.com/NyaaCat/NyaaCore /maven-repo'
44+ url ' https://raw.githubusercontent.com/NyaaCat/NyaaCentral /maven-repo'
4545 }
4646
4747 maven {
You can’t perform that action at this time.
0 commit comments