Tag version 1.0.0+31 #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
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/ |