add publishing
Some checks failed
Publish to snapshot maven / build (push) Failing after 0s

This commit is contained in:
moehreag 2024-05-13 14:23:55 +02:00
parent 021aba65aa
commit 7e5962a1f2
2 changed files with 38 additions and 2 deletions

View file

@ -0,0 +1,16 @@
name: Publish to snapshot maven
on: push
jobs:
build:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
runs: |
chmod +x ./gradlew
./gradlew publishMavenJavaPublicationToEsnesnonSnapshotsMavenRepository \
-PEsnesnonSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
-PEsnesnonSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }}

View file

@ -24,8 +24,28 @@ dependencies {
publishing {
publications {
create<MavenPublication>("mavenJava") {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
repositories {
maven {
name = "EsnesnonSnapshotsMaven"
url = uri("https://maven-esnesnon.ecorous.org/snapshots")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
maven {
name = "EsnesnonReleasesMaven"
url = uri("https://maven-esnesnon.ecorous.org/releases")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
}