diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 8912025..5cf1df4 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -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