Update maven settings to use Gitea. Added workflow publish.
build / build (21) (push) Failing after 11m19s

This commit is contained in:
2024-11-29 18:54:48 -07:00
parent a9c9c06fab
commit 66c631efb0
2 changed files with 12 additions and 5 deletions
+2
View File
@@ -29,6 +29,8 @@ jobs:
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: maven
run: ./gradlew publish
- name: capture build artifacts
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
uses: actions/upload-artifact@v4
+10 -5
View File
@@ -87,11 +87,16 @@ publishing {
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
maven {
name = "personal"
url = "https://maven.bigduckie.dev/releases"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
name = "Gitea"
url = uri("https://git.bigduckie.dev/api/packages/big-duckie/maven")
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${System.getenv("GITEA_MAVEN_TOKEN")}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}