mirror of
https://github.com/ashhhleyyy/player-pronouns.git
synced 2024-11-23 17:48:09 +00:00
feat: deploy releases to maven
This commit is contained in:
parent
7b87d76ec3
commit
0ada3f4419
2 changed files with 26 additions and 2 deletions
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -31,9 +31,12 @@ jobs:
|
||||||
- name: Build and publish with gradle
|
- name: Build and publish with gradle
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v2
|
||||||
with:
|
with:
|
||||||
arguments: modrinth
|
arguments: modrinth publish
|
||||||
env:
|
env:
|
||||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||||
|
MAVEN_URL: ${{ secrets.MAVEN_URL }}
|
||||||
|
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
||||||
|
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||||
|
|
||||||
- name: Upload GitHub release
|
- name: Upload GitHub release
|
||||||
uses: AButler/upload-release-assets@v2.0
|
uses: AButler/upload-release-assets@v2.0
|
||||||
|
|
|
@ -6,7 +6,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "1.5.0+1.19"
|
version = "1.5.0+1.19"
|
||||||
group = "io.github.ashhhleyyy"
|
group = "dev.ashhhleyyy"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
// needed for placeholder-api
|
// needed for placeholder-api
|
||||||
|
@ -80,3 +80,24 @@ modrinth {
|
||||||
required.project("fabric-api")
|
required.project("fabric-api")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications.create<MavenPublication>("maven") {
|
||||||
|
from(components["java"])
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
if (System.getenv("MAVEN_URL") != null) {
|
||||||
|
maven {
|
||||||
|
name = "ashhhleyyy"
|
||||||
|
setUrl(System.getenv("MAVEN_URL"))
|
||||||
|
credentials {
|
||||||
|
username = System.getenv("MAVEN_USERNAME")
|
||||||
|
password = System.getenv("MAVEN_PASSWORD")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
mavenLocal()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue