Skip to content

Commit

Permalink
Merge pull request #60 from mattrob33/develop
Browse files Browse the repository at this point in the history
Merge for v8.0.0
  • Loading branch information
mattrob33 authored Sep 15, 2022
2 parents 940ad3e + 37e1646 commit 1fb2c74
Show file tree
Hide file tree
Showing 344 changed files with 7,183 additions and 145,239 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Gemfile linguist-vendored
Gemfile.lock linguist-vendored
fastlane/Fastfile linguist-vendored
fastlane/Appfile linguist-vendored
45 changes: 45 additions & 0 deletions .github/workflows/deploy-open-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy Open Beta

on:
workflow_dispatch:
inputs:
versionName:
description: "Version Name"
required: true
rollout:
description: "Rollout %"
required: true

jobs:
release-internal:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# Decode our base64-encoded keystore contents from Github Secrets and write it
# to a temp file that we'll use in Fastlane to sign our app bundle.
- name: Create upload keystore
shell: bash
env:
KEYSTORE_CONTENTS: ${{ secrets.UPLOAD_KEY_JKS_BASE_64 }}
run: |
echo "$KEYSTORE_CONTENTS" | base64 --decode > "$RUNNER_TEMP/upload-key.jks"
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- uses: maierj/[email protected]
with:
lane: 'deployOpenBeta'
env:
VERSION_NAME: ${{ github.event.inputs.versionName }}
ROLLOUT: ${{ github.event.inputs.rollout }}
UPLOAD_KEY_DIR: ${{ runner.temp }}
UPLOAD_KEY_FILENAME: "upload-key.jks"
SIGNING_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
SIGNING_KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
PLAY_STORE_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_STORE_API_KEY }}
GITHUB_RELEASES_TOKEN: ${{ secrets.TOKEN_CREATE_GITHUB_RELEASES }}
44 changes: 44 additions & 0 deletions .github/workflows/deploy-play-store-internal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy to Play Store (internal)

on:
workflow_dispatch:
inputs:
versionName:
description: "Version Name"
required: true

jobs:
release-internal:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v2

# Decode our base64-encoded keystore contents from Github Secrets and write it
# to a temp file that we'll use in Fastlane to sign our app bundle.
- name: Create upload keystore
shell: bash
env:
KEYSTORE_CONTENTS: ${{ secrets.UPLOAD_KEY_JKS_BASE_64 }}
run: |
echo "$KEYSTORE_CONTENTS" | base64 --decode > "$RUNNER_TEMP/upload-key.jks"
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- name: Fastlane -> deployInternal
uses: maierj/[email protected]
with:
lane: 'deployInternal'
env:
VERSION_NAME: ${{ github.event.inputs.versionName }}
UPLOAD_KEY_DIR: ${{ runner.temp }}
UPLOAD_KEY_FILENAME: "upload-key.jks"
SIGNING_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
SIGNING_KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
PLAY_STORE_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_STORE_API_KEY }}
GITHUB_RELEASES_TOKEN: ${{ secrets.TOKEN_CREATE_GITHUB_RELEASES }}
60 changes: 60 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy to Production

on:
workflow_dispatch:
inputs:
versionName:
description: "Version Name"
required: true
rollout:
description: "Rollout %"
required: true
production:
description: "Please type production to confirm"
required: true

jobs:
deploy:

runs-on: ubuntu-latest

if: github.event.inputs.production == 'production'

steps:
- uses: actions/checkout@v2

# Decode our base64-encoded keystore contents from Github Secrets and write it
# to a temp file that we'll use in Fastlane to sign our app bundle.
- name: Create upload keystore
shell: bash
env:
KEYSTORE_CONTENTS: ${{ secrets.UPLOAD_KEY_JKS_BASE_64 }}
run: |
echo "$KEYSTORE_CONTENTS" | base64 --decode > "$RUNNER_TEMP/upload-key.jks"
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- uses: maierj/[email protected]
with:
lane: 'deployProduction'
env:
VERSION_NAME: ${{ github.event.inputs.versionName }}
ROLLOUT: ${{ github.event.inputs.rollout }}
UPLOAD_KEY_DIR: ${{ runner.temp }}
UPLOAD_KEY_FILENAME: "upload-key.jks"
SIGNING_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
SIGNING_KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
PLAY_STORE_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_STORE_API_KEY }}
GITHUB_RELEASES_TOKEN: ${{ secrets.TOKEN_CREATE_GITHUB_RELEASES }}

on-failed-deploy:
runs-on: ubuntu-latest
if: github.event.inputs.production != 'production'
steps:
- name: Failed to confirm deployment
shell: bash
run: |
echo "Failed to confirm. You must type 'production' to run this workflow."
49 changes: 49 additions & 0 deletions .github/workflows/firebase-app-distribution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy to Firebase App Distribution

on:
workflow_dispatch:
inputs:
versionName:
description: "Version Name"
required: true
releaseNotes:
description: "Release Notes"
required: false

jobs:
firebase-app-distribution:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# Decode our base64-encoded keystore contents from Github Secrets and write it
# to a temp file that we'll use in Fastlane to sign our app bundle.
- name: Create upload keystore
shell: bash
env:
KEYSTORE_CONTENTS: ${{ secrets.UPLOAD_KEY_JKS_BASE_64 }}
run: |
echo "$KEYSTORE_CONTENTS" | base64 --decode > "$RUNNER_TEMP/upload-key.jks"
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- name: Upload to Firebase App Distribution
uses: maierj/[email protected]
with:
lane: 'firebaseAppDistribution'
env:
VERSION_NAME: ${{ github.event.inputs.versionName }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_REFRESH_TOKEN }}
UPLOAD_KEY_DIR: ${{ runner.temp }}
UPLOAD_KEY_FILENAME: "upload-key.jks"
SIGNING_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
SIGNING_KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
PLAY_STORE_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_STORE_API_KEY }}
RELEASE_NOTES: ${{ github.event.inputs.releaseNotes }}
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: '11'
- name: Build with Gradle
run: ./gradlew build
run: ./gradlew assembleDebug
20 changes: 20 additions & 0 deletions .github/workflows/query-version-codes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Query version codes

on: workflow_dispatch

jobs:
query-version-codes:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- uses: maierj/[email protected]
with:
lane: 'getNextVersionCode'
env:
PLAY_STORE_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_STORE_API_KEY }}
23 changes: 23 additions & 0 deletions .github/workflows/slack-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Send Slack Message

on:
workflow_dispatch:
inputs:
message:
description: "Message"
required: true

jobs:
slack-test:

runs-on: ubuntu-latest

steps:
- name: Send Slack message
id: slack
uses: slackapi/[email protected]
with:
channel-id: 'C02HPF9D10A'
slack-message: ${{ github.event.inputs.message }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/build
/local.properties
/sblgnt.keystore
/app/build/
/app/release/
/sblgnt-upload.keystore
/upload_certificate.pem
/.gradle/
/.idea/
/buildSrc/.gradle/
/buildSrc/build/
/play-store-api-key.json
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source "https://rubygems.org"

gem "fastlane"

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
Loading

0 comments on commit 1fb2c74

Please sign in to comment.