GitHub Actions fix without a tag
This commit is contained in:
parent
1300d94b69
commit
c4f9196b50
9
.github/workflows/android.yml
vendored
9
.github/workflows/android.yml
vendored
@ -20,8 +20,17 @@ jobs:
|
||||
run: chmod +x gradlew
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew :ltw:assembleRelease
|
||||
- name: Upload AAR
|
||||
uses: actions/upload-artifact@v4.6.0
|
||||
if: startsWith(github.ref, 'refs/tags/') != true
|
||||
with:
|
||||
name: output-aar
|
||||
path: ltw/build/outputs/aar/ltw-release.aar
|
||||
if-no-files-found: error
|
||||
retention-days: 7
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: ltw/build/outputs/aar/ltw-release.aar
|
||||
|
||||
|
Reference in New Issue
Block a user