Skip to content

Commit

Permalink
Merge branch 'forge_1.17.1' into forge_1.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cam72cam committed Sep 16, 2023
2 parents 39c3ca0 + 1bd22be commit 19c9643
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,7 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: keyscan
run: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa teamopenindustry.cc >> ~/.ssh/known_hosts
- name: secrets
- name: Gradle publish
env:
MAVENCI: ${{ secrets.MAVENCI }}
run: mkdir -p /home/runner/.gradle/daemon/6.9/ && echo "${MAVENCI}" >> /home/runner/.gradle/daemon/6.9/publish_key && echo "${MAVENCI}" >> publish_key
- name: Gradle uploadArchives
run: ./gradlew uploadArchives
- name: cleanup
run: rm /home/runner/.gradle/daemon/6.9/publish_key
- uses: actions/upload-artifact@v2-preview
with:
name: UniversalModCore-${{ env.ref }}
path: build/libs/UniversalModCore-*.jar
MAVENCI_PASS: ${{ secrets.MAVENCI_PASS }}
run: ./gradlew publish
23 changes: 22 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,28 @@ jar {
}
}

//jar.finalizedBy('reobfJar')
jar.finalizedBy('reobfJar')

publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
url "sftp://teamopenindustry.cc:22/var/www/html/maven/"
credentials {
username = "mavenci"
password = System.getenv("MAVENCI_PASS")
}
}
}
}




/*
// Example configuration to allow publishing using the maven-publish task
// we define a custom artifact that is sourced from the reobfJar output task
Expand Down

0 comments on commit 19c9643

Please sign in to comment.