File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -26,20 +26,23 @@ jobs:
26
26
run : ./gradlew build
27
27
env :
28
28
VERSION : ${{ github.ref }}
29
+ - name : Find Tag
30
+ id : tagger
31
+ uses : jimschubert/query-tag-action@v2
32
+ with :
33
+ skip-unshallow : ' true'
34
+ commit-ish : HEAD
29
35
- 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)
33
- tag_name="${GITHUB_REF##*/}"
34
- hub release create ${assetsAAR} ${assetsJAR} -m "$tag_name" "$tag_name"
36
+ assets=$(find . -name "*${{steps.tagger.outputs.tag}}*.jar" -or -name " *release.aar" | while read -r asset ; do echo "-a $asset" ; done)
37
+ hub release create ${assets} -m "${{steps.tagger.outputs.tag}}" "${{steps.tagger.outputs.tag}}"
35
38
env:
36
39
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37
- VERSION: ${{ github.ref }}
38
- - name : Publish ${{ github.ref }}
40
+ VERSION: ${{steps.tagger.outputs.tag }}
41
+ - name : Publish ${{steps.tagger.outputs.tag }}
39
42
40
43
with :
41
44
remote-build-cache-proxy-enabled : false
42
45
properties : |
43
46
gradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
44
47
gradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
45
- arguments : publishPlugins -s --scan
48
+ arguments : publishPlugins -s --scan
You can’t perform that action at this time.
0 commit comments