Last active
November 18, 2020 17:30
-
-
Save sagar-viradiya/618829518708b3c8f51cc1b687c82eb3 to your computer and use it in GitHub Desktop.
Workflow for automating production release
This file contains hidden or 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
name: Internal release | |
on: | |
push: | |
tags: | |
- '[1-9]+.[0.9]+.[0.9]+' | |
jobs: | |
build: | |
name: Building release app | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking out tag | |
uses: actions/checkout@v2 | |
- name: Settting up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Runing build command | |
# Run your own gradle command to generate release build. | |
run: ./gradlew bundleRelease | |
- name: Uploading build | |
uses: actions/upload-artifact@v2 | |
with: | |
name: bundle | |
path: app/build/outputs/bundle/release/app-release.aab | |
upload_to_test_track: | |
name: Uploading build to Internal test track | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Downloading build | |
uses: actions/download-artifact@v2 | |
with: | |
name: bundle | |
- name: Uploading to test track | |
uses: r0adkll/upload-google-play@v1 | |
with: | |
# Your service account JSON GitHub secret | |
serviceAccountJsonPlainText: ${{ secrets.[your-github-service-acc-json-secret] }} | |
# Your package name | |
packageName: 'your-package-name' | |
releaseFiles: app-release.aab | |
track: internal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment