Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 05a4f02

Browse files
committed
publish to unified maven repo
1 parent d3ef75b commit 05a4f02

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.travis.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff 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
4548
deploy:
4649
skip_cleanup: true

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)