File tree Expand file tree Collapse file tree 4 files changed +15
-19
lines changed
Expand file tree Collapse file tree 4 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ jobs:
138138 with :
139139 name : libs
140140 path : |
141- buildfiles /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}.jar
142- buildfiles /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}-api.jar
141+ build-out /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}.jar
142+ build-out /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}-api.jar
143143
144144 view :
145145 name : View Changelog Output
@@ -162,7 +162,7 @@ jobs:
162162 uses : actions/download-artifact@v2
163163 with :
164164 name : libs
165- path : buildfiles
165+ path : build-out
166166 - name : Download Changelog Results
167167 uses : actions/download-artifact@v2
168168 with :
@@ -181,8 +181,8 @@ jobs:
181181 prerelease : false
182182 files : |
183183 changelog/CHANGELOG.md
184- buildfiles /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}.jar
185- buildfiles /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}-api.jar
184+ build-out /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}.jar
185+ build-out /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}-api.jar
186186
187187 - name : Full File
188188 id : filename
Original file line number Diff line number Diff line change @@ -130,15 +130,15 @@ jobs:
130130 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
131131
132132 - name : Output Dir Structure
133- run : ls -lhR buildfiles
134-
133+ run : ls -lhR build-out
134+
135135 - name : Add Artifact
136136 uses : actions/upload-artifact@v2
137137 with :
138138 name : libs
139139 path : |
140- buildfiles /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}.jar
141- buildfiles /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}-api.jar
140+ build-out /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}.jar
141+ build-out /${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}-api.jar
142142
143143 view :
144144 name : View Changelog Output
Original file line number Diff line number Diff line change @@ -29,3 +29,4 @@ forge*changelog.txt
2929
3030logs /
3131/mods /
32+ /build-out /
Original file line number Diff line number Diff line change @@ -188,15 +188,9 @@ jar {
188188 }
189189}
190190
191- // Example configuration to allow publishing using the maven-publish task
192- // This is the preferred method to reobfuscate your jar file
193- jar. finalizedBy(' reobfJar' )
194- // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
195- // publish.dependsOn('reobfJar')
196-
197- task srcJar (type : Jar ) {
198- from sourceSets. main. java
199- classifier = ' sources'
191+ jar {
192+ destinationDir = file(" $rootDir /build-out" )
193+ finalizedBy(' reobfJar' )
200194}
201195
202196task apiJar (type : Jar ) {
@@ -205,10 +199,11 @@ task apiJar(type: Jar) {
205199 from(sourceSets. main. output)
206200 include ' com/robotgryphon/compactmachines/api/**'
207201 classifier = ' api'
202+ destinationDir = file(" $rootDir /build-out" )
208203}
209204
210205artifacts {
211- archives srcJar , apiJar
206+ archives jar , apiJar
212207}
213208
214209publishing {
You can’t perform that action at this time.
0 commit comments