File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,14 +39,23 @@ jobs:
3939 needs : check-tag
4040 runs-on : ubuntu-latest
4141 steps :
42+ # TODO: replace with artifact upload/download
4243 - uses : actions/checkout@v3
4344 with :
4445 submodules : recursive
4546 - uses : gradle/gradle-build-action@v2
4647 with :
4748 arguments : build
48- - name : set env
49- run : echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
49+ - name : Upload Jar to GitHub release Take 2
50+ continue-on-error : true
51+ env :
52+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53+ # TODO - reusability
54+ # the location of the library(s) should be configurable as an input
55+ # parameter rather than being hard coded as `build/lib/ion-java...`
56+ # It should also be able to upload more than one file.
57+ run : |
58+ gh release upload "v$(<project.version)" "build/libs/*.jar"
5059 - name : Upload Jar to GitHub release
5160 env :
5261 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5564 # parameter rather than being hard coded as `build/lib/ion-java...`
5665 # It should also be able to upload more than one file.
5766 run : |
58- gh release upload "$RELEASE_TAG " "build/lib /ion-java-$(<project.version).jar"
67+ gh release upload "v$(<project.version) " "build/libs /ion-java-$(<project.version).jar"
5968 # TODO: Add `publish-to-maven-central` job
Original file line number Diff line number Diff line change 1- 1.9.13
1+ 1.9.14
You can’t perform that action at this time.
0 commit comments