Skip to content

Commit 5495eaa

Browse files
committed
foo14
1 parent d5515e0 commit 5495eaa

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/publish-release-artifacts.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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 }}
@@ -55,5 +64,5 @@ jobs:
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

project.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.13
1+
1.9.14

0 commit comments

Comments
 (0)