File tree 2 files changed +60
-1
lines changed
2 files changed +60
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : TrackAPI CI
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ - run : |
11
+ ref=`echo ${github_ref} | sed -e 's,refs/heads/,,' | tr '/' '-'`
12
+ echo $ref
13
+ echo "::set-env name=ref::$ref"
14
+ env:
15
+ github_ref: ${{ github.ref }}
16
+ ACTIONS_ALLOW_UNSECURE_COMMANDS: true
17
+ - name : keyscan
18
+ run : mkdir -p ~/.ssh/ && ssh-keyscan -t rsa teamopenindustry.cc >> ~/.ssh/known_hosts
19
+ - name : secrets
20
+ env :
21
+ MAVENCI : ${{ secrets.MAVENCI }}
22
+ run : echo "${MAVENCI}" >> publish_key
23
+ - name : Gradle uploadArchives
24
+ run : ./gradlew uploadArchives
25
+ - name : cleanup
26
+ run : rm publish_key
27
+ - uses : actions/upload-artifact@v2-preview
28
+ with :
29
+ name : UniversalModCore-${{ env.ref }}
30
+ path : build/libs/UniversalModCore-*.jar
Original file line number Diff line number Diff line change
1
+ import cam72cam.universalmodcore.Util ;
2
+
1
3
buildscript {
2
4
repositories {
3
5
jcenter()
4
6
maven { url = " http://files.minecraftforge.net/maven" }
7
+ maven { url = " https://teamopenindustry.cc/maven" }
5
8
}
6
9
dependencies {
7
10
classpath ' net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
11
+ classpath ' cam72cam.universalmodcore:UniversalModCoreGradle:0.1.3'
8
12
}
9
13
}
10
14
apply plugin : ' net.minecraftforge.gradle.forge'
11
15
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
16
+ apply plugin : ' maven'
12
17
13
18
14
- version = " 1.2"
19
+ String baseVersion = " 1.2"
20
+ if (! " release" . equalsIgnoreCase(System . getProperty(" target" ))) {
21
+ baseVersion + = " -" + Util.GitRevision ()
22
+ }
23
+ version = " 1.12.2-forge-" + baseVersion
15
24
group = " trackapi" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
16
25
archivesBaseName = " TrackAPI"
17
26
@@ -75,3 +84,23 @@ processResources {
75
84
exclude ' mcmod.info'
76
85
}
77
86
}
87
+
88
+ task deployJar (type : Jar )
89
+
90
+ configurations {
91
+ deployerJars
92
+ }
93
+
94
+ dependencies {
95
+ deployerJars " org.apache.maven.wagon:wagon-ssh:2.9"
96
+ }
97
+
98
+ uploadArchives {
99
+ repositories. mavenDeployer {
100
+ configuration = configurations. deployerJars
101
+ repository(url : " scp://teamopenindustry.cc/var/www/html/maven/" ) {
102
+ authentication(userName : " mavenci" , privateKey : " publish_key" )
103
+ }
104
+ }
105
+ }
106
+
You can’t perform that action at this time.
0 commit comments