Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Upload ml kit apk to github release #3330

Merged
merged 1 commit into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ on:
BUILD_TYPE:
required: true
type: string
# The name of the entrypoints in packages/app/lib/entrypoints/android/
# Example for entrypoints/android/main_google_play.dart
# Use <main_google_play> here
FLAVOR:
required: true
type: string
TAG_NAME:
required: false
type: string
Expand Down Expand Up @@ -100,7 +106,7 @@ jobs:
VERSION_CODE: ${{ inputs.VERSION_CODE }}

- name: Build app
run: echo $SIGN_STORE_PATH && pwd && cd ./packages/app/ && pwd && flutter build ${{ inputs.BUILD_TYPE }} --release -t lib/entrypoints/android/main_google_play.dart
run: echo $SIGN_STORE_PATH && pwd && cd ./packages/app/ && pwd && flutter build ${{ inputs.BUILD_TYPE }} --release -t lib/entrypoints/android/${{ inputs.FLAVOR }}.dart
env:
SIGN_STORE_PATH: ./../fastlane/envfiles/keystore.jks
SIGN_STORE_PASSWORD: ${{ secrets.SIGN_STORE_PASSWORD }}
Expand All @@ -113,7 +119,7 @@ jobs:
continue-on-error: true
with:
file: ./packages/app/build/app/outputs/flutter-apk/app-release.apk
asset_name: android-release-${{ inputs.TAG_NAME }}.apk
asset_name: openfoodfacts-${{ inputs.FLAVOR }}-${{ inputs.TAG_NAME }}.apk
tag: ${{ inputs.TAG_NAME }}
overwrite: true

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/internal-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
FLUTTER-CACHE-KEY: '3.3.x'
RELEASE_TYPE: 'PLAY'
BUILD_TYPE: 'appbundle'
FLAVOR: 'main_google_play'
secrets:
API_JSON_FILE_DECRYPTKEY: ${{secrets.API_JSON_FILE_DECRYPTKEY }}
DECRYPT_GPG_KEYSTORE: ${{secrets.DECRYPT_GPG_KEYSTORE }}
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
FLUTTER-CACHE-KEY: '3.3.x'
RELEASE_TYPE: 'PLAY'
BUILD_TYPE: 'appbundle'
FLAVOR: 'main_google_play'
secrets:
API_JSON_FILE_DECRYPTKEY: ${{secrets.API_JSON_FILE_DECRYPTKEY }}
DECRYPT_GPG_KEYSTORE: ${{secrets.DECRYPT_GPG_KEYSTORE }}
Expand Down Expand Up @@ -124,6 +125,30 @@ jobs:
RELEASE_TYPE: 'GITHUB'
BUILD_TYPE: 'apk'
TAG_NAME: ${{ needs.release-please.outputs.tag_name}}
FLAVOR: 'main_google_play'
secrets:
API_JSON_FILE_DECRYPTKEY: ${{secrets.API_JSON_FILE_DECRYPTKEY }}
DECRYPT_GPG_KEYSTORE: ${{secrets.DECRYPT_GPG_KEYSTORE }}
STORE_JKS_DECRYPTKEY: ${{secrets.NEW_CYPHER }}
SIGN_STORE_PASSWORD: ${{secrets.DECRYPT_FOR_SCANNER_FILE }}
SIGN_KEY_ALIAS: ${{secrets.ALIAS_FOR_SCANNER }}
SIGN_KEY_PASSWORD: ${{secrets.KEY_FOR_SCANNER }}

android-release-github-ml:
concurrency:
group: android-release-github-ml
cancel-in-progress: false
uses: openfoodfacts/smooth-app/.github/workflows/android-release-to-org-openfoodfacts-scanner.yml@develop
needs: [release-please, create-release]
if: ${{ needs.release-please.outputs.release_created }}
with:
VERSION_NAME: ${{ needs.create-release.outputs.VERSION_NAME}}
VERSION_CODE: ${{ needs.create-release.outputs.VERSION_CODE}}
FLUTTER-CACHE-KEY: '3.3.x'
RELEASE_TYPE: 'GITHUB'
BUILD_TYPE: 'apk'
TAG_NAME: ${{ needs.release-please.outputs.tag_name}}
FLAVOR: 'main_fdroid'
secrets:
API_JSON_FILE_DECRYPTKEY: ${{secrets.API_JSON_FILE_DECRYPTKEY }}
DECRYPT_GPG_KEYSTORE: ${{secrets.DECRYPT_GPG_KEYSTORE }}
Expand Down