Skip to content

Commit d30fb0b

Browse files
committed
Fix Github Actions Automatic Releases
1 parent 752a8af commit d30fb0b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/android.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ jobs:
2828
path: ltw/build/outputs/aar/ltw-release.aar
2929
if-no-files-found: error
3030
retention-days: 7
31+
- name: Set short SHA for release tag
32+
id: short_sha
33+
run: echo "short_sha=$(echo '${{ github.sha }}' | cut -c1-7)" >> $GITHUB_ENV
3134
- name: Create Release
32-
uses: softprops/action-gh-release@v2
33-
if: startsWith(github.ref, 'refs/tags/')
35+
uses: ncipollo/release-action@v1.16.0
3436
with:
35-
files: ltw/build/outputs/aar/ltw-release.aar
37+
commit: ${{ github.sha }}
38+
tag: ${{ env.short_sha }}
39+
artifacts: ltw/build/outputs/aar/ltw-release.aar
3640

0 commit comments

Comments
 (0)