Skip to content

Commit 85b9c4d

Browse files
eirnymhannesa2
authored andcommitted
simplify tagging
1 parent 26c5c8d commit 85b9c4d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ jobs:
2727
env:
2828
VERSION: ${{ github.ref }}
2929
- run: |
30-
assetsAAR=$(find . -name *release.aar | while read -r asset ; do echo "-a $asset" ; done)
31-
VERSION=$(echo $VERSION | cut -d'/' -f3)
32-
assetsJAR=$(find . -name *${VERSION}*.jar | while read -r asset ; do echo "-a $asset" ; done)
30+
VERSION_J=$(echo $VERSION | cut -d'/' -f3)
31+
assets=$(find . -name "*${VERSION_J}*.jar" -or -name " *release.aar" | while read -r asset ; do echo "-a $asset" ; done)
3332
tag_name="${GITHUB_REF##*/}"
34-
hub release create ${assetsAAR} ${assetsJAR} -m "$tag_name" "$tag_name"
33+
hub release create ${assets} -m "$tag_name" "$tag_name"
3534
env:
3635
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3736
VERSION: ${{ github.ref }}
@@ -42,4 +41,4 @@ jobs:
4241
properties: |
4342
gradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
4443
gradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
45-
arguments: publishPlugins -s --scan
44+
arguments: publishPlugins -s --scan

0 commit comments

Comments
 (0)