Skip to content

Commit

Permalink
chore: Starting out Android deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle committed Oct 18, 2023
1 parent 73ff784 commit cb079e6
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
steps:
- uses: actions/checkout@v3

# Installing Flutter because it's easier to generate .lcov files for test coverage
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: "3.13.5"
channel: "stable"

- name: Install dependencies
run: flutter pub get
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/deploy_android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy Android (Google Play Store)
on:
# Only trigger, when the "build" workflow succeeded (only works in the Master Branch)
workflow_run:
workflows: ["Build & Test"]
types:
- completed

# Only trigger, when pushing into the `main` branch
push:
branches: [main]

permissions:
contents: write

jobs:
build-and-deploy_android:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

# Needed to base64 decode the upload keystore
- name: ⚙️ Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "12.x"
cache: 'gradle'
id: java

# Needed to run Flutter-based commands
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.13.5"
channel: "stable"

- name: Install dependencies
run: flutter pub get
7 changes: 4 additions & 3 deletions .github/workflows/deploy_web.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Deploy Web (GitHub Pages)
on:
# Only trigger, when the "build" workflow succeeded
# Only trigger, when the "build" workflow succeeded (only works in the Master Branch)
workflow_run:
workflows: ["CI build"]
workflows: ["Build & Test"]
types:
- completed

Expand All @@ -14,7 +14,7 @@ permissions:
contents: write

jobs:
build-and-deploy:
build-and-deploy_web:
runs-on: ubuntu-latest

steps:
Expand All @@ -24,6 +24,7 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.13.5"
channel: "stable"

- name: Install dependencies
Expand Down

0 comments on commit cb079e6

Please sign in to comment.