Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cam72cam committed Sep 16, 2023
1 parent cfd70ef commit 1bd22be
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 1bd22be

Please sign in to comment.