From 4316683a61f77a473ba270df7c515fdd28c294f5 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 9 Oct 2024 12:22:51 +0200 Subject: [PATCH] switch publishing to forgejo instance --- build.gradle | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 4472f9e..d7fa841 100644 --- a/build.gradle +++ b/build.gradle @@ -112,11 +112,17 @@ tasks.register('proguard', ProGuardTask) { publishing { repositories { maven { - credentials { - username secrets.username - password secrets.password + name = "Forgejo-SparrowWallet" + url = uri("https://code.sparrowwallet.com/api/packages/sparrowwallet/maven") + + credentials(HttpHeaderCredentials) { + name = "Authorization" + value = "token ${secrets.token}" + } + + authentication { + header(HttpHeaderAuthentication) } - url 'https://mymavenrepo.com/repo/Ym4HjVje06VlvgK5VxFd/' } }