Update workflows for flavor configuration

Change-Id: I0e9fe55b2e3767223bea44a6ebd3c9e2e5ee2be0
pull/130/head
Alex Vanyo 3 years ago
parent 2305b87d17
commit fab95a2498

@ -44,31 +44,18 @@ jobs:
- name: Run local tests - name: Run local tests
run: ./gradlew testDemoDebug testProdDebug --stacktrace run: ./gradlew testDemoDebug testProdDebug --stacktrace
- name: Upload Demo build outputs (APKs) - name: Upload build outputs (APKs)
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: build-outputs-demo name: build-outputs
path: app/demo/build/outputs path: app/build/outputs
- name: Upload Prod build outputs (APKs) - name: Upload build reports
uses: actions/upload-artifact@v2
with:
name: build-outputs-prod
path: app/prod/build/outputs
- name: Upload Demo build reports
if: always()
uses: actions/upload-artifact@v2
with:
name: build-reports-demo
path: app/demo/build/reports
- name: Upload Prod build reports
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: build-reports-prod name: build-reports
path: app/prod/build/reports path: app/build/reports
androidTest: androidTest:
needs: build needs: build

@ -45,6 +45,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: app/build/outputs/apk/debug/app-debug.apk asset_path: app/build/outputs/apk/demo/debug/app-demo-debug.apk
asset_name: app-debug.apk asset_name: app-demo-debug.apk
asset_content_type: application/vnd.android.package-archive asset_content_type: application/vnd.android.package-archive

Loading…
Cancel
Save