Compare commits
11 Commits
1.21-05101
...
1.20.6-60c
| 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:
|
||||
runs-on: ubuntu-latest
|
||||
environment: default
|
||||
env:
|
||||
MAVEN_REPO_USER: ${{ secrets.MAVEN_REPO_USER }}
|
||||
MAVEN_REPO_PASSWORD: ${{ secrets.MAVEN_REPO_PASSWORD }}
|
||||
steps:
|
||||
- name: Checkout Git Repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -32,6 +35,11 @@ jobs:
|
||||
run: gradle applyPatches
|
||||
- name: CreateJar
|
||||
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
|
||||
run: sh scripts/SetENV.sh
|
||||
- name: Upload Artifact
|
||||
@@ -64,4 +72,4 @@ jobs:
|
||||
secret_v2: ${{ secrets.API_KEY }}
|
||||
tag: ${{ env.tag }}
|
||||
project_id: ${{ env.project_id }}
|
||||
run: sh scripts/PushToAPI.sh
|
||||
run: sh scripts/PushToAPI.sh
|
||||
|
||||
@@ -100,21 +100,15 @@ allprojects {
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = "githubPackage"
|
||||
url = uri("https://maven.pkg.github.com/LuminolMC/Luminol")
|
||||
name = "moliaMavenRepo"
|
||||
url = uri("https://maven.moliatopia.icu/repository/maven-snapshots/")
|
||||
|
||||
credentials.username = System.getenv("GITHUB_USERNAME")
|
||||
credentials.password = System.getenv("GITHUB_TOKEN")
|
||||
}
|
||||
|
||||
publications {
|
||||
register<MavenPublication>("gpr") {
|
||||
from(components["java"])
|
||||
}
|
||||
credentials.username = System.getenv("MAVEN_REPO_USER")
|
||||
credentials.password = System.getenv("MAVEN_REPO_PASSWORD")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
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