Skip to content

Commit

Permalink
temporary comment release worflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwein committed Feb 7, 2024
1 parent 816e91a commit 0dea3b8
Showing 1 changed file with 148 additions and 148 deletions.
296 changes: 148 additions & 148 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,98 +40,98 @@ jobs:
outputs:
date: ${{ steps.getCurrentTimestamp.outputs.date }}

build-android-prod:
runs-on: ubuntu-latest
needs: pre-build
steps:
- uses: actions/checkout@v3

- name: Set Environment Variables
uses: ./.github/actions/setvars
with:
varFilePath: ./.github/variables/myvars.env

- uses: subosito/flutter-action@v2
with:
cache: true
flutter-version: ${{ env.FLUTTER_VERSION }}

- name: Write Google configuration for Android
shell: bash
run: |
echo "$PROD_GOOGLE_SERVICE_B64" | base64 --decode > android/app/google-services.json
env:
PROD_GOOGLE_SERVICE_B64: ${{ secrets.PROD_GOOGLE_SERVICE_B64 }}

- name: Write key properties
shell: bash
run: |
echo "$KEY_PROPERTIES_B64" | base64 --decode > android/key.properties
env:
KEY_PROPERTIES_B64: ${{ secrets.KEY_PROPERTIES_B64 }}

- name: Write key store
shell: bash
run: |
mkdir android/keystore
echo "$KEYSTORE_B64" | base64 --decode > android/keystore/passemploi.jks
env:
KEYSTORE_B64: ${{ secrets.KEYSTORE_B64 }}

- name: Write env
shell: bash
run: |
echo "$PROD_RUNTIME_ENV_B64" | base64 --decode > env/.env.prod
env:
PROD_RUNTIME_ENV_B64: ${{ secrets.PROD_RUNTIME_ENV_B64 }}

- name: CEJ - Build Android appbundle
run: |
flutter pub get
flutter build appbundle \
-t lib/cej_main.dart \
--flavor cejProd \
--build-number=${{ needs.pre-build.outputs.date }}
- name: CEJ - Save Android appbundle
uses: actions/upload-artifact@v3
with:
path: build/app/outputs/bundle/release/app.aab

- name: CEJ - Deploy Android appbundle
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.PROD_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
packageName: fr.fabrique.social.gouv.passemploi
releaseName: ${{github.ref_name}}
releaseFiles: build/app/outputs/bundle/release/app.aab
track: production
status: completed
whatsNewDirectory: release-notes/cej

- name: BRSA - Build Android appbundle
run: |
flutter pub get
flutter build appbundle \
-t lib/brsa_main.dart \
--flavor brsaProd \
--build-number=${{ needs.pre-build.outputs.date }}
- name: BRSA - Save Android appbundle
uses: actions/upload-artifact@v3
with:
path: build/app/outputs/bundle/release/app.aab

- name: BRSA - Deploy Android appbundle
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.PROD_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
packageName: fr.fabrique.social.gouv.passemploi.rsa
releaseName: ${{github.ref_name}}
releaseFiles: build/app/outputs/bundle/release/app.aab
track: production
status: completed
whatsNewDirectory: release-notes/brsa
# build-android-prod:
# runs-on: ubuntu-latest
# needs: pre-build
# steps:
# - uses: actions/checkout@v3

# - name: Set Environment Variables
# uses: ./.github/actions/setvars
# with:
# varFilePath: ./.github/variables/myvars.env

# - uses: subosito/flutter-action@v2
# with:
# cache: true
# flutter-version: ${{ env.FLUTTER_VERSION }}

# - name: Write Google configuration for Android
# shell: bash
# run: |
# echo "$PROD_GOOGLE_SERVICE_B64" | base64 --decode > android/app/google-services.json
# env:
# PROD_GOOGLE_SERVICE_B64: ${{ secrets.PROD_GOOGLE_SERVICE_B64 }}

# - name: Write key properties
# shell: bash
# run: |
# echo "$KEY_PROPERTIES_B64" | base64 --decode > android/key.properties
# env:
# KEY_PROPERTIES_B64: ${{ secrets.KEY_PROPERTIES_B64 }}

# - name: Write key store
# shell: bash
# run: |
# mkdir android/keystore
# echo "$KEYSTORE_B64" | base64 --decode > android/keystore/passemploi.jks
# env:
# KEYSTORE_B64: ${{ secrets.KEYSTORE_B64 }}

# - name: Write env
# shell: bash
# run: |
# echo "$PROD_RUNTIME_ENV_B64" | base64 --decode > env/.env.prod
# env:
# PROD_RUNTIME_ENV_B64: ${{ secrets.PROD_RUNTIME_ENV_B64 }}

# - name: CEJ - Build Android appbundle
# run: |
# flutter pub get
# flutter build appbundle \
# -t lib/cej_main.dart \
# --flavor cejProd \
# --build-number=${{ needs.pre-build.outputs.date }}

# - name: CEJ - Save Android appbundle
# uses: actions/upload-artifact@v3
# with:
# path: build/app/outputs/bundle/release/app.aab

# - name: CEJ - Deploy Android appbundle
# uses: r0adkll/upload-google-play@v1
# with:
# serviceAccountJsonPlainText: ${{ secrets.PROD_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
# packageName: fr.fabrique.social.gouv.passemploi
# releaseName: ${{github.ref_name}}
# releaseFiles: build/app/outputs/bundle/release/app.aab
# track: production
# status: completed
# whatsNewDirectory: release-notes/cej

# - name: BRSA - Build Android appbundle
# run: |
# flutter pub get
# flutter build appbundle \
# -t lib/brsa_main.dart \
# --flavor brsaProd \
# --build-number=${{ needs.pre-build.outputs.date }}

# - name: BRSA - Save Android appbundle
# uses: actions/upload-artifact@v3
# with:
# path: build/app/outputs/bundle/release/app.aab

# - name: BRSA - Deploy Android appbundle
# uses: r0adkll/upload-google-play@v1
# with:
# serviceAccountJsonPlainText: ${{ secrets.PROD_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
# packageName: fr.fabrique.social.gouv.passemploi.rsa
# releaseName: ${{github.ref_name}}
# releaseFiles: build/app/outputs/bundle/release/app.aab
# track: production
# status: completed
# whatsNewDirectory: release-notes/brsa

build-ios-prod:
runs-on: macos-12
Expand Down Expand Up @@ -218,62 +218,62 @@ jobs:
APPLE_PROD_API_KEY: ${{ secrets.APPLE_PROD_API_KEY }}
APPLE_PROD_API_KEY_B64: ${{ secrets.APPLE_PROD_API_KEY_B64 }}

- name: CEJ - Set up a temporary keychain for code signing
shell: bash
run: |
keychain initialize
- name: CEJ - Fetch the code signing files from App Store Connect
shell: bash
run: |
export APP_STORE_CONNECT_ISSUER_ID="$APPLE_PROD_API_ISSUER"
export APP_STORE_CONNECT_KEY_IDENTIFIER="$APPLE_PROD_API_KEY"
export APP_STORE_CONNECT_PRIVATE_KEY=`cat ios/AuthKey_"$APPLE_PROD_API_KEY".p8`
app-store-connect fetch-signing-files fr.fabrique.social.gouv.passemploi \
--platform IOS \
--type IOS_APP_STORE \
--certificate-key=@env:APPLE_P12_PRIVATE_KEY \
--create
env:
APPLE_PROD_API_ISSUER: ${{ secrets.APPLE_PROD_API_ISSUER }}
APPLE_PROD_API_KEY: ${{ secrets.APPLE_PROD_API_KEY }}
APPLE_P12_PRIVATE_KEY: ${{secrets.APPLE_P12_PRIVATE_KEY}}

- name: CEJ - Add fetched certificates to keychain
shell: bash
run: |
keychain add-certificates
- name: CEJ - Update Xcode project settings with fetched code signing profiles and create prod_export_options.plist
shell: bash
run: |
xcode-project use-profiles --export-options-plist ios/prod_export_options.plist
- name: CEJ - Build IPA with generated prod_export_options.plist
shell: bash
run: |
flutter build ipa \
-t lib/cej_main.dart \
--flavor cejProd \
--release \
--build-number=${{ needs.pre-build.outputs.date }} \
--export-options-plist=ios/prod_export_options.plist \
--no-pub \
--verbose
- name: CEJ - Deploy app to App Store Connect
shell: bash
run: |
export APP_STORE_CONNECT_ISSUER_ID="$APPLE_PROD_API_ISSUER"
export APP_STORE_CONNECT_KEY_IDENTIFIER="$APPLE_PROD_API_KEY"
export APP_STORE_CONNECT_PRIVATE_KEY=`cat ios/AuthKey_"$APPLE_PROD_API_KEY".p8`
app-store-connect publish \
--path $(find $(pwd) -name "CEJ.ipa") \
--whats-new @file:release-notes/cej/whatsnew-fr-FR
env:
APPLE_PROD_API_ISSUER: ${{ secrets.APPLE_PROD_API_ISSUER }}
APPLE_PROD_API_KEY: ${{ secrets.APPLE_PROD_API_KEY }}
APPLE_P12_PRIVATE_KEY: ${{secrets.APPLE_P12_PRIVATE_KEY}}
# - name: CEJ - Set up a temporary keychain for code signing
# shell: bash
# run: |
# keychain initialize

# - name: CEJ - Fetch the code signing files from App Store Connect
# shell: bash
# run: |
# export APP_STORE_CONNECT_ISSUER_ID="$APPLE_PROD_API_ISSUER"
# export APP_STORE_CONNECT_KEY_IDENTIFIER="$APPLE_PROD_API_KEY"
# export APP_STORE_CONNECT_PRIVATE_KEY=`cat ios/AuthKey_"$APPLE_PROD_API_KEY".p8`
# app-store-connect fetch-signing-files fr.fabrique.social.gouv.passemploi \
# --platform IOS \
# --type IOS_APP_STORE \
# --certificate-key=@env:APPLE_P12_PRIVATE_KEY \
# --create
# env:
# APPLE_PROD_API_ISSUER: ${{ secrets.APPLE_PROD_API_ISSUER }}
# APPLE_PROD_API_KEY: ${{ secrets.APPLE_PROD_API_KEY }}
# APPLE_P12_PRIVATE_KEY: ${{secrets.APPLE_P12_PRIVATE_KEY}}

# - name: CEJ - Add fetched certificates to keychain
# shell: bash
# run: |
# keychain add-certificates

# - name: CEJ - Update Xcode project settings with fetched code signing profiles and create prod_export_options.plist
# shell: bash
# run: |
# xcode-project use-profiles --export-options-plist ios/prod_export_options.plist

# - name: CEJ - Build IPA with generated prod_export_options.plist
# shell: bash
# run: |
# flutter build ipa \
# -t lib/cej_main.dart \
# --flavor cejProd \
# --release \
# --build-number=${{ needs.pre-build.outputs.date }} \
# --export-options-plist=ios/prod_export_options.plist \
# --no-pub \
# --verbose

# - name: CEJ - Deploy app to App Store Connect
# shell: bash
# run: |
# export APP_STORE_CONNECT_ISSUER_ID="$APPLE_PROD_API_ISSUER"
# export APP_STORE_CONNECT_KEY_IDENTIFIER="$APPLE_PROD_API_KEY"
# export APP_STORE_CONNECT_PRIVATE_KEY=`cat ios/AuthKey_"$APPLE_PROD_API_KEY".p8`
# app-store-connect publish \
# --path $(find $(pwd) -name "CEJ.ipa") \
# --whats-new @file:release-notes/cej/whatsnew-fr-FR
# env:
# APPLE_PROD_API_ISSUER: ${{ secrets.APPLE_PROD_API_ISSUER }}
# APPLE_PROD_API_KEY: ${{ secrets.APPLE_PROD_API_KEY }}
# APPLE_P12_PRIVATE_KEY: ${{secrets.APPLE_P12_PRIVATE_KEY}}

- name: BRSA - Set up a temporary keychain for code signing
shell: bash
Expand Down

0 comments on commit 0dea3b8

Please sign in to comment.