-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from cuappdev/staging
Publishing Backend URL fix
- Loading branch information
Showing
63 changed files
with
4,101 additions
and
106 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,80 @@ | ||
name: Publish to Google Play Store Beta | ||
|
||
on: | ||
push: | ||
branches: [ prod-test ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: wrapper | ||
cache-read-only: false | ||
|
||
- name: Create secrets.properties | ||
run: | | ||
echo "${{ secrets.SECRETS_PROPERTIES }}" > secrets.properties | ||
# TODO: Add google services json | ||
|
||
- name: Build with Gradle | ||
id: build | ||
run: ./gradlew build | ||
|
||
- name: Build the app | ||
id: buildRelease | ||
run: ./gradlew bundleRelease | ||
|
||
- name: Sign AAB | ||
id: sign | ||
uses: r0adkll/sign-android-release@v1 | ||
with: | ||
releaseDirectory: app/build/outputs/bundle/release | ||
signingKeyBase64: ${{ secrets.KEYSTORE }} | ||
alias: ${{ secrets.KEY_ALIAS }} | ||
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
|
||
- name: Upload AAB | ||
id: uploadArtifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: app | ||
path: app/build/outputs/bundle/release/app-release.aab | ||
|
||
- name: Create service_account.json | ||
id: createServiceAccount | ||
run: echo '${{ secrets.PLAY_STORE_JSON }}' > service_account.json | ||
|
||
- name: Deploy to Play Store (BETA) | ||
id: deploy | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJson: service_account.json | ||
packageName: ${{ secrets.PACKAGE_NAME }} | ||
releaseFiles: "app/build/outputs/bundle/release/app-release.aab" | ||
track: beta | ||
whatsNewDirectory: whatsnew/ | ||
|
||
- name: Notify on Slack | ||
uses: act10ns/slack@v1 | ||
with: | ||
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
if: always() |
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,80 @@ | ||
name: Publish to Google Play Store [PRODUCTION] | ||
|
||
on: | ||
push: | ||
branches: [ prod ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: wrapper | ||
cache-read-only: false | ||
|
||
- name: Create secrets.properties | ||
run: | | ||
echo "${{ secrets.SECRETS_PROPERTIES }}" > secrets.properties | ||
# TODO: Add google services json | ||
|
||
- name: Build with Gradle | ||
id: build | ||
run: ./gradlew build | ||
|
||
- name: Build the app | ||
id: buildRelease | ||
run: ./gradlew bundleRelease | ||
|
||
- name: Sign AAB | ||
id: sign | ||
uses: r0adkll/sign-android-release@v1 | ||
with: | ||
releaseDirectory: app/build/outputs/bundle/release | ||
signingKeyBase64: ${{ secrets.KEYSTORE }} | ||
alias: ${{ secrets.KEY_ALIAS }} | ||
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
|
||
- name: Upload AAB | ||
id: uploadArtifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: app | ||
path: app/build/outputs/bundle/release/app-release.aab | ||
|
||
- name: Create service_account.json | ||
id: createServiceAccount | ||
run: echo '${{ secrets.PLAY_STORE_JSON }}' > service_account.json | ||
|
||
- name: Deploy to Play Store (PROD) | ||
id: deploy | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJson: service_account.json | ||
packageName: ${{ secrets.PACKAGE_NAME }} | ||
releaseFiles: "app/build/outputs/bundle/release/app-release.aab" | ||
track: production | ||
whatsNewDirectory: whatsnew/ | ||
|
||
- name: Notify on Slack | ||
uses: act10ns/slack@v1 | ||
with: | ||
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
if: always() |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"version": 3, | ||
"artifactType": { | ||
"type": "APK", | ||
"kind": "Directory" | ||
}, | ||
"applicationId": "com.cornellappdev.uplift", | ||
"variantName": "release", | ||
"elements": [ | ||
{ | ||
"type": "SINGLE", | ||
"filters": [], | ||
"attributes": [], | ||
"versionCode": 10, | ||
"versionName": "1.4", | ||
"outputFile": "app-release.apk" | ||
} | ||
], | ||
"elementType": "File", | ||
"baselineProfiles": [ | ||
{ | ||
"minApi": 28, | ||
"maxApi": 30, | ||
"baselineProfiles": [ | ||
"baselineProfiles/1/app-release.dm" | ||
] | ||
}, | ||
{ | ||
"minApi": 31, | ||
"maxApi": 2147483647, | ||
"baselineProfiles": [ | ||
"baselineProfiles/0/app-release.dm" | ||
] | ||
} | ||
], | ||
"minSdkVersionForDexing": 28 | ||
} |
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
Oops, something went wrong.