Update maven settings to use Gitea. Added workflow publish.
build / build (21) (push) Failing after 11m19s
build / build (21) (push) Failing after 11m19s
This commit is contained in:
@@ -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
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user