Compare commits
11 Commits
1.21-2e520
...
1.20.4-06b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60c416d3a9 | ||
|
|
78cc493220 | ||
|
|
360ab76f27 | ||
|
|
4e56383c3f | ||
|
|
0486f22863 | ||
|
|
4d0250da91 | ||
|
|
cee875b0fd | ||
|
|
564c218c3a | ||
|
|
4616a6706f | ||
|
|
b4330e6a62 | ||
|
|
d228424df6 |
10
.github/workflows/build_1.20.6.yml
vendored
10
.github/workflows/build_1.20.6.yml
vendored
@@ -12,6 +12,9 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: default
|
environment: default
|
||||||
|
env:
|
||||||
|
MAVEN_REPO_USER: ${{ secrets.MAVEN_REPO_USER }}
|
||||||
|
MAVEN_REPO_PASSWORD: ${{ secrets.MAVEN_REPO_PASSWORD }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Git Repository
|
- name: Checkout Git Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -32,6 +35,11 @@ jobs:
|
|||||||
run: gradle applyPatches
|
run: gradle applyPatches
|
||||||
- name: CreateJar
|
- name: CreateJar
|
||||||
run: gradle createMojmapBundlerJar createMojmapPaperclipJar
|
run: gradle createMojmapBundlerJar createMojmapPaperclipJar
|
||||||
|
- name: Publish to repo
|
||||||
|
run: |
|
||||||
|
export MAVEN_REPO_USER=${{ secrets.MAVEN_REPO_USER }}
|
||||||
|
export MAVEN_REPO_PASSWORD=${{ secrets.MAVEN_REPO_PASSWORD }}
|
||||||
|
./gradlew publish -PpublishDevBundle=true
|
||||||
- name: SetENV
|
- name: SetENV
|
||||||
run: sh scripts/SetENV.sh
|
run: sh scripts/SetENV.sh
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
@@ -64,4 +72,4 @@ jobs:
|
|||||||
secret_v2: ${{ secrets.API_KEY }}
|
secret_v2: ${{ secrets.API_KEY }}
|
||||||
tag: ${{ env.tag }}
|
tag: ${{ env.tag }}
|
||||||
project_id: ${{ env.project_id }}
|
project_id: ${{ env.project_id }}
|
||||||
run: sh scripts/PushToAPI.sh
|
run: sh scripts/PushToAPI.sh
|
||||||
|
|||||||
@@ -100,21 +100,15 @@ allprojects {
|
|||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "githubPackage"
|
name = "moliaMavenRepo"
|
||||||
url = uri("https://maven.pkg.github.com/LuminolMC/Luminol")
|
url = uri("https://maven.moliatopia.icu/repository/maven-snapshots/")
|
||||||
|
|
||||||
credentials.username = System.getenv("GITHUB_USERNAME")
|
credentials.username = System.getenv("MAVEN_REPO_USER")
|
||||||
credentials.password = System.getenv("GITHUB_TOKEN")
|
credentials.password = System.getenv("MAVEN_REPO_PASSWORD")
|
||||||
}
|
|
||||||
|
|
||||||
publications {
|
|
||||||
register<MavenPublication>("gpr") {
|
|
||||||
from(components["java"])
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
if (project.hasProperty("publishDevBundle")) {
|
if (project.hasProperty("publishDevBundle")) {
|
||||||
|
|||||||
4
scripts/PushToMaven.sh
Normal file
4
scripts/PushToMaven.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
prop() {
|
||||||
|
grep "^[[:space:]]*${1}" gradle.properties | cut -d'=' -f2 | sed 's/^[[:space:]]*//; s/\r//'
|
||||||
|
}
|
||||||
|
sh publish -PpublishDevBundle=true
|
||||||
Reference in New Issue
Block a user