Skip to content

Release 1.0.0+34

Release 1.0.0+34 #41

Workflow file for this run

# From https://www.valueof.io/blog/deploying-to-google-play-using-github-actions
name: Deploy
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
- 'release/*'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Print Dart SDK version
run: dart --version
- name: Install dependencies
run: flutter pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: flutter analyze --fatal-infos
- name: Run tests
run: flutter test
- name: Build app
run: flutter build appbundle --release
- name: Sign Release
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: build/app/outputs/bundle/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Tag Release
run: |
version_name=${GITHUB_REF##*/}
echo "Tagging release with tag $version_name"
git tag $version_name release/$version_name
git push origin --tags
- name: Deploy to Internal
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: com.raspberryginger.uscis_test
releaseFiles: build/app/outputs/bundle/release/app-release.aab
track: internal
whatsNewDirectory: whatsNewDirectory/