From 9fb492b572d7807450f0752c6222fe0e246acea9 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 2 Jul 2020 23:53:31 +0530 Subject: Deploy both variants to snapshot directory (#914) * Deploy both free and non-free variants Signed-off-by: Harsh Shandilya * build: add product flavor to APK name Signed-off-by: Harsh Shandilya --- .github/workflows/deploy_snapshot.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/deploy_snapshot.yml b/.github/workflows/deploy_snapshot.yml index 5b3b1cc4..621f12ef 100644 --- a/.github/workflows/deploy_snapshot.yml +++ b/.github/workflows/deploy_snapshot.yml @@ -51,7 +51,7 @@ jobs: run: ./gradlew dependencies - name: Build release app - run: ./gradlew :app:assembleFreeRelease + run: ./gradlew :app:assembleFreeRelease :app:assembleNonFreeRelease env: SNAPSHOT: "true" @@ -76,6 +76,8 @@ jobs: run: npm install -g cloudflare-cli - name: Purge Cloudflare cache - run: cfcli --token ${CF_TOKEN} purge "https://dl.msfjarvis.dev/APS/$(cd ./app/build/outputs/apk/release/; ls *.apk)" + run: | + cfcli --token ${CF_TOKEN} purge "https://dl.msfjarvis.dev/APS/$(cd ./app/build/outputs/apk/nonFree/release/; ls *.apk)" + cfcli --token ${CF_TOKEN} purge "https://dl.msfjarvis.dev/APS/$(cd ./app/build/outputs/apk/free/release/; ls *.apk)" env: CF_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} -- cgit v1.2.3