GitHub Actions fix without a tag

This commit is contained in:
Eva Isabella Luna 2025-03-23 02:02:35 -06:00 committed by GitHub
parent 1300d94b69
commit c4f9196b50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,8 +20,17 @@ jobs:
run: chmod +x gradlew run: chmod +x gradlew
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew :ltw:assembleRelease 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 - name: Create Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with: with:
files: ltw/build/outputs/aar/ltw-release.aar files: ltw/build/outputs/aar/ltw-release.aar