Skip to content

Commit

Permalink
Uncomment the Android build
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mabe committed Nov 1, 2023
1 parent d4f5fb2 commit 1c79212
Showing 1 changed file with 55 additions and 56 deletions.
111 changes: 55 additions & 56 deletions .github/workflows/build_and_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,61 +39,61 @@ jobs:
- name: Print version
run: echo ${{ steps.version.outputs.content }}

# BuildAndroidRelease:
# runs-on: ubuntu-latest
# environment: production
# needs: GetVersionNumber
# permissions:
# contents: write

# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# - uses: actions/checkout@v3

# # Checkout the repository code and get packages.
# - name: Checkout app code
# uses: actions/checkout@v3

# # Set up Flutter.
# - uses: subosito/flutter-action@v1
# with:
# channel: "stable"

# - run: flutter doctor -v

# - run: flutter pub get

# - name: Download Android keystore
# id: android_keystore
# uses: timheuer/[email protected]
# with:
# fileName: upload-keystore.jks
# encodedString: ${{ secrets.KEYSTORE_FILE_BASE64 }}

# - name: Create key.properties
# run: |
# echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties
# echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" >> android/key.properties
# echo "keyPassword=${{ secrets.KEYSTORE_KEY_PASSWORD }}" >> android/key.properties
# echo "keyAlias=${{ secrets.KEYSTORE_KEY_ALIAS }}" >> android/key.properties

# - name: Build Android Release APK
# run: flutter build apk --release

# - name: Build Android Release AppBundle
# run: flutter build appbundle

# - name: Upload APK Artifact
# uses: actions/upload-artifact@v3
# with:
# name: release-apk
# path: build/app/outputs/apk/release/app-release.apk

# - name: Upload Android AppBundle Artifact
# uses: actions/upload-artifact@v3
# with:
# name: release-aab
# path: build/app/outputs/bundle/release/app-release.aab
BuildAndroidRelease:
runs-on: ubuntu-latest
environment: production
needs: GetVersionNumber
permissions:
contents: write

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3

# Checkout the repository code and get packages.
- name: Checkout app code
uses: actions/checkout@v3

# Set up Flutter.
- uses: subosito/flutter-action@v1
with:
channel: "stable"

- run: flutter doctor -v

- run: flutter pub get

- name: Download Android keystore
id: android_keystore
uses: timheuer/[email protected]
with:
fileName: upload-keystore.jks
encodedString: ${{ secrets.KEYSTORE_FILE_BASE64 }}

- name: Create key.properties
run: |
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties
echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" >> android/key.properties
echo "keyPassword=${{ secrets.KEYSTORE_KEY_PASSWORD }}" >> android/key.properties
echo "keyAlias=${{ secrets.KEYSTORE_KEY_ALIAS }}" >> android/key.properties
- name: Build Android Release APK
run: flutter build apk --release

- name: Build Android Release AppBundle
run: flutter build appbundle

- name: Upload APK Artifact
uses: actions/upload-artifact@v3
with:
name: release-apk
path: build/app/outputs/apk/release/app-release.apk

- name: Upload Android AppBundle Artifact
uses: actions/upload-artifact@v3
with:
name: release-aab
path: build/app/outputs/bundle/release/app-release.aab

BuildiOSRelease:
runs-on: macos-latest
Expand Down Expand Up @@ -193,4 +193,3 @@ jobs:
draft: "true"
tag: ${{needs.GetVersionNumber.outputs.version}}
generateReleaseNotes: "true"

0 comments on commit 1c79212

Please sign in to comment.