Skip to content

Commit 1fb2c74

Browse files
authored
Merge pull request #60 from mattrob33/develop
Merge for v8.0.0
2 parents 940ad3e + 37e1646 commit 1fb2c74

File tree

344 files changed

+7183
-145239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+7183
-145239
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Gemfile linguist-vendored
2+
Gemfile.lock linguist-vendored
3+
fastlane/Fastfile linguist-vendored
4+
fastlane/Appfile linguist-vendored
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy Open Beta
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
versionName:
7+
description: "Version Name"
8+
required: true
9+
rollout:
10+
description: "Rollout %"
11+
required: true
12+
13+
jobs:
14+
release-internal:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
# Decode our base64-encoded keystore contents from Github Secrets and write it
21+
# to a temp file that we'll use in Fastlane to sign our app bundle.
22+
- name: Create upload keystore
23+
shell: bash
24+
env:
25+
KEYSTORE_CONTENTS: ${{ secrets.UPLOAD_KEY_JKS_BASE_64 }}
26+
run: |
27+
echo "$KEYSTORE_CONTENTS" | base64 --decode > "$RUNNER_TEMP/upload-key.jks"
28+
29+
- uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: 2.6
32+
33+
- uses: maierj/[email protected]
34+
with:
35+
lane: 'deployOpenBeta'
36+
env:
37+
VERSION_NAME: ${{ github.event.inputs.versionName }}
38+
ROLLOUT: ${{ github.event.inputs.rollout }}
39+
UPLOAD_KEY_DIR: ${{ runner.temp }}
40+
UPLOAD_KEY_FILENAME: "upload-key.jks"
41+
SIGNING_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
42+
SIGNING_KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
43+
SIGNING_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
44+
PLAY_STORE_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_STORE_API_KEY }}
45+
GITHUB_RELEASES_TOKEN: ${{ secrets.TOKEN_CREATE_GITHUB_RELEASES }}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to Play Store (internal)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
versionName:
7+
description: "Version Name"
8+
required: true
9+
10+
jobs:
11+
release-internal:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v2
17+
18+
# Decode our base64-encoded keystore contents from Github Secrets and write it
19+
# to a temp file that we'll use in Fastlane to sign our app bundle.
20+
- name: Create upload keystore
21+
shell: bash
22+
env:
23+
KEYSTORE_CONTENTS: ${{ secrets.UPLOAD_KEY_JKS_BASE_64 }}
24+
run: |
25+
echo "$KEYSTORE_CONTENTS" | base64 --decode > "$RUNNER_TEMP/upload-key.jks"
26+
27+
- name: Setup Ruby
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: 2.6
31+
32+
- name: Fastlane -> deployInternal
33+
uses: maierj/[email protected]
34+
with:
35+
lane: 'deployInternal'
36+
env:
37+
VERSION_NAME: ${{ github.event.inputs.versionName }}
38+
UPLOAD_KEY_DIR: ${{ runner.temp }}
39+
UPLOAD_KEY_FILENAME: "upload-key.jks"
40+
SIGNING_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
41+
SIGNING_KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
42+
SIGNING_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
43+
PLAY_STORE_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_STORE_API_KEY }}
44+
GITHUB_RELEASES_TOKEN: ${{ secrets.TOKEN_CREATE_GITHUB_RELEASES }}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Deploy to Production
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
versionName:
7+
description: "Version Name"
8+
required: true
9+
rollout:
10+
description: "Rollout %"
11+
required: true
12+
production:
13+
description: "Please type production to confirm"
14+
required: true
15+
16+
jobs:
17+
deploy:
18+
19+
runs-on: ubuntu-latest
20+
21+
if: github.event.inputs.production == 'production'
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
26+
# Decode our base64-encoded keystore contents from Github Secrets and write it
27+
# to a temp file that we'll use in Fastlane to sign our app bundle.
28+
- name: Create upload keystore
29+
shell: bash
30+
env:
31+
KEYSTORE_CONTENTS: ${{ secrets.UPLOAD_KEY_JKS_BASE_64 }}
32+
run: |
33+
echo "$KEYSTORE_CONTENTS" | base64 --decode > "$RUNNER_TEMP/upload-key.jks"
34+
35+
- uses: ruby/setup-ruby@v1
36+
with:
37+
ruby-version: 2.6
38+
39+
- uses: maierj/[email protected]
40+
with:
41+
lane: 'deployProduction'
42+
env:
43+
VERSION_NAME: ${{ github.event.inputs.versionName }}
44+
ROLLOUT: ${{ github.event.inputs.rollout }}
45+
UPLOAD_KEY_DIR: ${{ runner.temp }}
46+
UPLOAD_KEY_FILENAME: "upload-key.jks"
47+
SIGNING_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
48+
SIGNING_KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
49+
SIGNING_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
50+
PLAY_STORE_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_STORE_API_KEY }}
51+
GITHUB_RELEASES_TOKEN: ${{ secrets.TOKEN_CREATE_GITHUB_RELEASES }}
52+
53+
on-failed-deploy:
54+
runs-on: ubuntu-latest
55+
if: github.event.inputs.production != 'production'
56+
steps:
57+
- name: Failed to confirm deployment
58+
shell: bash
59+
run: |
60+
echo "Failed to confirm. You must type 'production' to run this workflow."
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy to Firebase App Distribution
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
versionName:
7+
description: "Version Name"
8+
required: true
9+
releaseNotes:
10+
description: "Release Notes"
11+
required: false
12+
13+
jobs:
14+
firebase-app-distribution:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
# Decode our base64-encoded keystore contents from Github Secrets and write it
22+
# to a temp file that we'll use in Fastlane to sign our app bundle.
23+
- name: Create upload keystore
24+
shell: bash
25+
env:
26+
KEYSTORE_CONTENTS: ${{ secrets.UPLOAD_KEY_JKS_BASE_64 }}
27+
run: |
28+
echo "$KEYSTORE_CONTENTS" | base64 --decode > "$RUNNER_TEMP/upload-key.jks"
29+
30+
- name: Setup Ruby
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: 2.6
34+
35+
- name: Upload to Firebase App Distribution
36+
uses: maierj/[email protected]
37+
with:
38+
lane: 'firebaseAppDistribution'
39+
env:
40+
VERSION_NAME: ${{ github.event.inputs.versionName }}
41+
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
42+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_REFRESH_TOKEN }}
43+
UPLOAD_KEY_DIR: ${{ runner.temp }}
44+
UPLOAD_KEY_FILENAME: "upload-key.jks"
45+
SIGNING_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
46+
SIGNING_KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
47+
SIGNING_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
48+
PLAY_STORE_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_STORE_API_KEY }}
49+
RELEASE_NOTES: ${{ github.event.inputs.releaseNotes }}

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14-
- name: set up JDK 1.8
14+
- name: Set up JDK 11
1515
uses: actions/setup-java@v1
1616
with:
17-
java-version: 1.8
17+
java-version: '11'
1818
- name: Build with Gradle
19-
run: ./gradlew build
19+
run: ./gradlew assembleDebug
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Query version codes
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
query-version-codes:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: 2.6
15+
16+
- uses: maierj/[email protected]
17+
with:
18+
lane: 'getNextVersionCode'
19+
env:
20+
PLAY_STORE_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_STORE_API_KEY }}

.github/workflows/slack-test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Send Slack Message
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
message:
7+
description: "Message"
8+
required: true
9+
10+
jobs:
11+
slack-test:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Send Slack message
17+
id: slack
18+
uses: slackapi/[email protected]
19+
with:
20+
channel-id: 'C02HPF9D10A'
21+
slack-message: ${{ github.event.inputs.message }}
22+
env:
23+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
/build
22
/local.properties
33
/sblgnt.keystore
4+
/app/build/
5+
/app/release/
6+
/sblgnt-upload.keystore
7+
/upload_certificate.pem
8+
/.gradle/
9+
/.idea/
10+
/buildSrc/.gradle/
11+
/buildSrc/build/
12+
/play-store-api-key.json

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source "https://rubygems.org"
2+
3+
gem "fastlane"
4+
5+
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
6+
eval_gemfile(plugins_path) if File.exist?(plugins_path)

0 commit comments

Comments
 (0)