File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,19 @@ 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
- 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)
32
- tag_name="${GITHUB_REF##*/}"
33
- hub release create ${assets} -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}}"
34
38
env:
35
39
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
- VERSION: ${{ github.ref }}
37
- - name : Publish ${{ github.ref }}
40
+ VERSION: ${{steps.tagger.outputs.tag }}
41
+ - name : Publish ${{steps.tagger.outputs.tag }}
38
42
39
43
with :
40
44
remote-build-cache-proxy-enabled : false
You can’t perform that action at this time.
0 commit comments