diff --git a/.github/workflows/cd-android-live-update.yml b/.github/workflows/cd-android-live-update.yml index 1058693..0a4a2af 100644 --- a/.github/workflows/cd-android-live-update.yml +++ b/.github/workflows/cd-android-live-update.yml @@ -58,10 +58,22 @@ jobs: if: steps.check.outputs.changed == 'true' run: yarn install - - name: Deploy live update + - name: Build if: steps.check.outputs.changed == 'true' env: NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }} NEXT_PUBLIC_SUPABASE_INSTANCE_ID: ${{ secrets.NEXT_PUBLIC_SUPABASE_INSTANCE_ID }} NEXT_PUBLIC_SUPABASE_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_KEY }} - run: yarn android-live-update + run: yarn build-web-view + + - name: Deploy Live Update + uses: capawesome-team/cloud-live-update-action@v0.0.5 + id: upload-action + with: + appId: '969bc540-8077-492f-8403-b554bee5de50' + channel: 'default' + commitMessage: $(git log -1 --pretty=format:"%s") + commitRef: ${{ github.head_ref || github.ref_name }} + commitSha: ${{ github.sha }} + path: 'web/out' + token: ${{ secrets.CAPAWESOME_TOKEN }} diff --git a/android/capawesome.json b/android/capawesome.json index 7e59175..2eb4a03 100644 --- a/android/capawesome.json +++ b/android/capawesome.json @@ -1,3 +1,3 @@ { - "version": 4 + "version": 6 } \ No newline at end of file diff --git a/scripts/android_live_update.sh b/scripts/android_live_update.sh index aa7b9e1..93e9bdc 100755 --- a/scripts/android_live_update.sh +++ b/scripts/android_live_update.sh @@ -9,7 +9,4 @@ yarn build-web-view npx @capawesome/cli apps:bundles:create \ --app-id 969bc540-8077-492f-8403-b554bee5de50 \ --channel default \ - --commit-message $(git log -1 --pretty=format:"%s") \ - --commit-ref 'd699ceae3890f70a7bc66720bc980398f799a6e1' \ - --commit-sha 'd699ceae3890f70a7bc66720bc980398f799a6e1' \ --path web/out