Skip to content

Commit

Permalink
Uncommented mobile section
Browse files Browse the repository at this point in the history
  • Loading branch information
tk-nguyen committed Oct 3, 2023
1 parent e56bff9 commit f96df78
Showing 1 changed file with 75 additions and 75 deletions.
150 changes: 75 additions & 75 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,81 +9,81 @@ env:
name: Release app

jobs:
# release_mobile:
# name: Release on mobile stores
# runs-on: ${{ matrix.runner }}
# environment: prod

# strategy:
# matrix:
# include:
# - os: android
# runner: ubuntu-latest
# - os: ios
# runner: macos-latest
# fail-fast: false

# steps:
# - name: Checkout repository
# uses: actions/checkout@v3

# - name: Setup Flutter
# uses: subosito/flutter-action@v2
# with:
# flutter-version: ${{ env.FLUTTER_VERSION }}
# channel: "stable"
# cache: true
# cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}"

# - uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.SSH_KEY }}

# - name: Setup Fastlane
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: "ruby"
# bundler-cache: true
# working-directory: ${{ matrix.os }}

# - name: Setup Java
# if: matrix.os == 'android'
# uses: actions/setup-java@v3
# with:
# distribution: "temurin" # See 'Supported distributions' for available options
# java-version: "11"

# - name: Prepare Android release
# if: matrix.os == 'android'
# env:
# ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
# ANDROID_STORE_PASS: ${{ secrets.ANDROID_STORE_PASS }}
# ANDROID_KEY_PASS: ${{ secrets.ANDROID_KEY_PASS }}
# ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
# PLAYSTORE_DEPLOY_KEY: ${{ secrets.PLAYSTORE_DEPLOY_KEY }}
# run: ../scripts/prepare-android-release.sh
# working-directory: ${{ matrix.os }}

# - name: Prepare iOS release
# if: matrix.os == 'ios'
# run: ../scripts/prepare-ios.sh
# working-directory: ${{ matrix.os }}

# - name: Release on Play Store internal track
# if: matrix.os == 'android'
# run: ../scripts/release-playstore-beta.sh
# working-directory: ${{ matrix.os }}

# - name: Release on TestFlight
# if: matrix.os == 'ios'
# env:
# APPLE_CERTIFICATES_SSH_KEY: ${{ secrets.APPLE_CERTIFICATES_SSH_KEY }}
# APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
# APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
# APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }}
# MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
# run: ../scripts/release-ios-testflight.sh
# working-directory: ${{ matrix.os }}
release_mobile:
name: Release on mobile stores
runs-on: ${{ matrix.runner }}
environment: prod

strategy:
matrix:
include:
- os: android
runner: ubuntu-latest
- os: ios
runner: macos-latest
fail-fast: false

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

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: "stable"
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}"

- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name: Setup Fastlane
uses: ruby/setup-ruby@v1
with:
ruby-version: "ruby"
bundler-cache: true
working-directory: ${{ matrix.os }}

- name: Setup Java
if: matrix.os == 'android'
uses: actions/setup-java@v3
with:
distribution: "temurin" # See 'Supported distributions' for available options
java-version: "11"

- name: Prepare Android release
if: matrix.os == 'android'
env:
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
ANDROID_STORE_PASS: ${{ secrets.ANDROID_STORE_PASS }}
ANDROID_KEY_PASS: ${{ secrets.ANDROID_KEY_PASS }}
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
PLAYSTORE_DEPLOY_KEY: ${{ secrets.PLAYSTORE_DEPLOY_KEY }}
run: ../scripts/prepare-android-release.sh
working-directory: ${{ matrix.os }}

- name: Prepare iOS release
if: matrix.os == 'ios'
run: ../scripts/prepare-ios.sh
working-directory: ${{ matrix.os }}

- name: Release on Play Store internal track
if: matrix.os == 'android'
run: ../scripts/release-playstore-beta.sh
working-directory: ${{ matrix.os }}

- name: Release on TestFlight
if: matrix.os == 'ios'
env:
APPLE_CERTIFICATES_SSH_KEY: ${{ secrets.APPLE_CERTIFICATES_SSH_KEY }}
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
run: ../scripts/release-ios-testflight.sh
working-directory: ${{ matrix.os }}

package_desktop:
name: Package app on desktops
Expand Down

0 comments on commit f96df78

Please sign in to comment.