-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish internal-release to alpha track.
- Loading branch information
1 parent
3886fd6
commit c32f982
Showing
5 changed files
with
62 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: production-release | ||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
alpha-track: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Extract branch name | ||
id: extract_branch | ||
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" | ||
|
||
- name: Set up JDK | ||
if: steps.extract_branch.outputs.branch == 'develop' | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Test and build internal-release bundle (AAB) | ||
if: steps.extract_branch.outputs.branch == 'develop' | ||
env: | ||
NUMBERS_STORAGE_BASE_URL: ${{ secrets.NUMBERS_STORAGE_BASE_URL }} | ||
run: | | ||
./gradlew testInternalRelease | ||
./gradlew bundleInternalRelease | ||
- name: Sign AAB | ||
id: sign_aab | ||
uses: r0adkll/sign-android-release@v1 | ||
with: | ||
releaseDirectory: ./app/build/outputs/bundle/internalRelease | ||
signingKeyBase64: ${{ secrets.KEYSTORE_FILE }} | ||
alias: ${{ secrets.KEY_ALIAS }} | ||
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
|
||
- name: Create service_account.json | ||
id: createServiceAccount | ||
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json | ||
|
||
- name: Deploy to Play Store (internal) | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJson: service_account.json | ||
packageName: io.numbersprotocol.starlingcapture | ||
releaseFile: ./app/build/outputs/bundle/internalRelease/app-internal-release.aab | ||
track: alpha |
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
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
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
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