File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 88 name : Get Variables
99 runs-on : ubuntu-latest
1010 outputs :
11- release_type : ${{steps.releasetype.outputs.value }}
11+ release_type : ${{steps.cf_release_type.outputs.value }}
12+ mod_version : ${{steps.mod_version.outputs.value }}
1213 steps :
1314 - name : Checkout
1415 uses : actions/checkout@v2
1516
1617 - name : Release Type
17- id : releasetype
18+ id : cf_release_type
1819 uses :
christian-draeger/[email protected] 1920 with :
2021 path : ' ./gradle.properties'
2122 property : ' cf_release_type'
2223
24+ - name : Mod Version
25+ id : mod_version
26+ uses :
christian-draeger/[email protected] 27+ with :
28+ path : ' ./gradle.properties'
29+ property : ' mod_version'
2330 changelog :
2431 name : Generate Changelog (tags)
2532 runs-on : ubuntu-latest
7279 jar :
7380 name : Publish JAR
7481 runs-on : ubuntu-latest
75- needs : [changelog]
82+ needs : [vars, changelog]
7683 steps :
7784 - name : Download Changelog Results
7885 uses : actions/download-artifact@v2
99106 run : chmod +x gradlew
100107
101108 - name : Build JAR with Gradle
102- run : ./gradlew publish
109+ run : ./gradlew build
110+ # run: ./gradlew publish
103111 env :
104112 GITHUB_ACTOR : ${{ secrets.GITHUB_ACTOR }}
105113 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -108,7 +116,7 @@ jobs:
108116 uses : actions/upload-artifact@v2
109117 with :
110118 name : libs
111- path : build/libs/*.jar
119+ path : build/libs/**${{jobs.vars.outputs.mod_version}}** .jar
112120
113121 view :
114122 name : View Changelog Output
You can’t perform that action at this time.
0 commit comments