Skip to content

Commit

Permalink
Fixed github action
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavik-multipl committed Apr 6, 2023
1 parent 492d77b commit d7e15c3
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/build-and-deploy-to-playstore.yml
Expand Up @@ -10,38 +10,38 @@ jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'

- name: Cache Flutter dependencies
uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pub-cache-${{ hashFiles('**/pubspec.lock') }}
restore-keys: ${{ runner.os }}-pub-cache-

- uses: subosito/flutter-action@v1.5.3
with:
channel: 'stable'

- name: Install dependencies
run: flutter pub get

- name: Build release app bundle
run: flutter build appbundle --release

- name: Authenticate with Google Play Console
uses: google-github-actions/setup-gcloud@master
with:
project_id: my-project-id
service_account_key: ${{ secrets.PLAY_STORE_AUTH_TOKEN }}
- name: Upload APK to Google Play Console
uses: google-github-actions/upload-google-play@master
with:
release_files: "build/app/outputs/bundle/release/app-release.aab"
track: "production"
package_name: "com.ibhavikmakwana.flutterplayground"
service_account_key: ${{ secrets.PLAY_STORE_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'

- name: Cache Flutter dependencies
uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pub-cache-${{ hashFiles('**/pubspec.lock') }}
restore-keys: ${{ runner.os }}-pub-cache-

- uses: subosito/flutter-action@v1.5.3
with:
channel: 'stable'

- name: Install dependencies
run: flutter pub get

- name: Build release app bundle
run: flutter build appbundle --release

- name: Authenticate with Google Play Console
uses: google-github-actions/setup-gcloud@master
with:
project_id: my-project-id
service_account_key: ${{ secrets.PLAY_STORE_AUTH_TOKEN }}
- name: Upload APK to Google Play Console
uses: google-github-actions/upload-google-play@master
with:
release_files: "build/app/outputs/bundle/release/app-release.aab"
track: "production"
package_name: "com.ibhavikmakwana.flutterplayground"
service_account_key: ${{ secrets.PLAY_STORE_AUTH_TOKEN }}

0 comments on commit d7e15c3

Please sign in to comment.