Skip to content

Commit

Permalink
Merge pull request #151 from cuappdev/justin/beta-compare-menus-publish
Browse files Browse the repository at this point in the history
Justin/beta compare menus publish
  • Loading branch information
thisjustin123 authored Oct 3, 2024
2 parents 78be1e7 + f116645 commit daab29b
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/publish-to-play-store-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Publish to Google Play Store Beta

on:
push:
branches: [ prod-beta ]

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: 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()
68 changes: 68 additions & 0 deletions .github/workflows/publish-to-play-store.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
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: 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()
1 change: 1 addition & 0 deletions whatsnew/whatsnew-en-US
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adds the Compare Menus feature!

0 comments on commit daab29b

Please sign in to comment.