diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b93b38..c4a7a3d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,13 @@ on: # Allows us to run the workflow manually from the Actions tab workflow_dispatch: + branches: [deploy*] + + env: flutter_version: 3.13.6 + app_name: concordium_wallet + ruby_version: '3.2' jobs: android-build-and-release: @@ -37,7 +42,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.2' + ruby-version: ${{ env.ruby_version }} bundler-cache: true - name: Release to Google Play (Internal) env: @@ -46,4 +51,36 @@ jobs: run: | bundle exec fastlane supply \ --aab build/app/outputs/bundle/release/app-release.aab \ - --track internal \ No newline at end of file + --track internal + android-build-and-release: + runs-on: macos-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: ${{ env.flutter_version }} + channel: 'stable' + cache: true + - name: Download pub dependencies + run: flutter pub get + - name: Build iOS IPA + run: flutter build ipa + - name: Upload Bundle + uses: actions/upload-artifact@v3 + with: + name: concordium-wallet-${{ github.ref_name }}.ipa + path: "${{github.workspace}}/build/ios/ipa/${{ env.app_name }}.ipa + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ env.ruby_version }} + bundler-cache: true + - name: Upload to testflight + env: + PILOT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }} + run: | + bundle exec fastlane pilot upload \ + --ipa build/ios/ipa/${{ env.app_name }}.ipa \ + --track internal