diff --git a/.github/workflows/tasks-ios.yaml b/.github/workflows/tasks-ios.yaml new file mode 100644 index 00000000..4700bf0e --- /dev/null +++ b/.github/workflows/tasks-ios.yaml @@ -0,0 +1,49 @@ +name: Deploy tasks to TestFlight + +env: + RUBY_VERSION: '2.6.10' + FLUTTER_VERSION: '3.13.0' + MELOS_VERSION: '3.0.0' + +on: + push: + branches: + - '*' + tags: + - 'v*' + pull_request: + +jobs: + + beta: + runs-on: macos-latest + environment: 'tasks (iOS: TestFlight)' + steps: + - uses: actions/checkout@v3 + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ env.RUBY_VERSION }} + bundler-cache: true + + - uses: subosito/flutter-action@v2 + with: + flutter-version: ${{ env.FLUTTER_VERSION }} + cache: true + + - uses: bluefireteam/melos-action@v1 + with: + melos-version: ${{ env.MELOS_VERSION }} + + - run: bundle install + working-directory: apps/tasks/ios + + - name: fastlane beta + run: bundle exec fastlane beta + working-directory: apps/tasks/ios + env: + MATCH_PASSWORD: ${{ env.MATCH_PASSWORD }} + MATCH_USERNAME: ${{ env.MATCH_USERNAME }} + APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ env.APP_STORE_CONNECT_API_KEY_KEY_ID }} + APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ env.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} + APP_STORE_CONNECT_API_KEY_KEY: ${{ env.APP_STORE_CONNECT_API_KEY_KEY }} diff --git a/apps/tasks/ios/Gemfile.lock b/apps/tasks/ios/Gemfile.lock index 3538096f..4d78ac4d 100644 --- a/apps/tasks/ios/Gemfile.lock +++ b/apps/tasks/ios/Gemfile.lock @@ -7,21 +7,21 @@ GEM public_suffix (>= 2.0.2, < 6.0) artifactory (3.0.15) atomos (0.1.3) - aws-eventstream (1.2.0) - aws-partitions (1.855.0) - aws-sdk-core (3.187.1) + aws-eventstream (1.3.0) + aws-partitions (1.856.0) + aws-sdk-core (3.188.0) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.5) jmespath (~> 1, >= 1.6.1) - aws-sdk-kms (1.72.0) - aws-sdk-core (~> 3, >= 3.184.0) + aws-sdk-kms (1.73.0) + aws-sdk-core (~> 3, >= 3.188.0) aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.138.0) - aws-sdk-core (~> 3, >= 3.181.0) + aws-sdk-s3 (1.139.0) + aws-sdk-core (~> 3, >= 3.188.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.6) - aws-sigv4 (1.6.1) + aws-sigv4 (1.7.0) aws-eventstream (~> 1, >= 1.0.2) babosa (1.0.4) claide (1.1.0) @@ -32,7 +32,8 @@ GEM declarative (0.0.20) digest-crc (0.6.5) rake (>= 12.0.0, < 14.0.0) - domain_name (0.6.20231109) + domain_name (0.5.20190701) + unf (>= 0.0.5, < 1.0.0) dotenv (2.8.1) emoji_regex (3.2.3) excon (0.104.0) @@ -188,6 +189,9 @@ GEM tty-spinner (0.9.3) tty-cursor (~> 0.7) uber (0.1.0) + unf (0.1.4) + unf_ext + unf_ext (0.0.9.1) unicode-display_width (2.5.0) webrick (1.8.1) word_wrap (1.0.0) @@ -204,10 +208,10 @@ GEM xcpretty (~> 0.2, >= 0.0.7) PLATFORMS - x86_64-darwin-23 + ruby DEPENDENCIES fastlane BUNDLED WITH - 2.4.10 + 1.17.2 diff --git a/apps/tasks/ios/fastlane/Fastfile b/apps/tasks/ios/fastlane/Fastfile index c4651fac..a8c79c82 100644 --- a/apps/tasks/ios/fastlane/Fastfile +++ b/apps/tasks/ios/fastlane/Fastfile @@ -36,6 +36,7 @@ platform :ios do desc "Push a new beta build to TestFlight" lane :beta do + setup_ci if ENV['CI'] sync_code_signing( type: "appstore", app_identifier: 'de.helpwave.tasks',