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
|
run: chmod +x ./gradlew
|
||||||
- name: build
|
- name: build
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
|
- name: maven
|
||||||
|
run: ./gradlew publish
|
||||||
- name: capture build artifacts
|
- name: capture build artifacts
|
||||||
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
|
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
+10
-5
@@ -87,11 +87,16 @@ publishing {
|
|||||||
// The repositories here will be used for publishing your artifact, not for
|
// The repositories here will be used for publishing your artifact, not for
|
||||||
// retrieving dependencies.
|
// retrieving dependencies.
|
||||||
maven {
|
maven {
|
||||||
name = "personal"
|
name = "Gitea"
|
||||||
url = "https://maven.bigduckie.dev/releases"
|
url = uri("https://git.bigduckie.dev/api/packages/big-duckie/maven")
|
||||||
credentials {
|
|
||||||
username = System.getenv("MAVEN_USERNAME")
|
credentials(HttpHeaderCredentials) {
|
||||||
password = System.getenv("MAVEN_PASSWORD")
|
name = "Authorization"
|
||||||
|
value = "token ${System.getenv("GITEA_MAVEN_TOKEN")}"
|
||||||
|
}
|
||||||
|
|
||||||
|
authentication {
|
||||||
|
header(HttpHeaderAuthentication)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user