diff --git a/.github/workflows/upload-changelog-to-appstore.yml b/.github/workflows/upload-changelog-to-appstore.yml new file mode 100644 index 00000000..ab1292ba --- /dev/null +++ b/.github/workflows/upload-changelog-to-appstore.yml @@ -0,0 +1,51 @@ +name: Upload changelogs for iOS using Fastlane +on: + push: + branches: + - 'upload-changelog-to-appstore' + +jobs: + testflight-release: + name: Deploy changelogs to the Apple App Store + runs-on: macos-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + + - name: Version + run: echo ${{ env.RELEASE_VERSION }} + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: 3.0.2 + - name: Bundle install + run: cd ./fastlane/ios/fastlane && gem install bundler:1.17.3 && bundle install && pwd && ls + + - name: Decrypt AuthKey file + run: pwd && ls && cd ./fastlane/ios/fastlane/envfiles && ./decrypt_secrets.sh && ls && pwd + env: + AUTH_KEY_FILE_DECRYPTKEY: ${{ secrets.AUTH_KEY_FILE_DECRYPTKEY }} + + - name: Publish changelogs for iOS + run: cd ./fastlane/ios/fastlane && pwd && ls && bundle exec fastlane upload_changelogs + env: + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + FASTLANE_USER: ${{ secrets.FASTLANE_USER }} + FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }} + FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }} + MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} + MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }} + MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} + MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} + PILOT_APPLE_ID: ${{ secrets.PILOT_APPLE_ID }} + SPACESHIP_CONNECT_API_ISSUER_ID: ${{ secrets.SPACESHIP_CONNECT_API_ISSUER_ID }} + SPACESHIP_CONNECT_API_KEY_ID: ${{ secrets.SPACESHIP_CONNECT_API_KEY_ID }} + SPACESHIP_CONNECT_API_KEY_FILEPATH: ./fastlane/envfiles/AuthKey_KDAUTTM76R.p8 + CI_RELEASE: true + diff --git a/fastlane/ios/fastlane/Fastfile b/fastlane/ios/fastlane/Fastfile index c5dda512..c8ba5fe2 100644 --- a/fastlane/ios/fastlane/Fastfile +++ b/fastlane/ios/fastlane/Fastfile @@ -81,14 +81,15 @@ platform :ios do # path: "Runner.xcodeproj", #teamid: "ZC9CYWD334" #) - + MATCH_FORCE_ENTERPRISE="1" # Upload changelog to TestFlight - pilot( + deliver( app_identifier: APP_IDENTIFIER, skip_submission: true, skip_waiting_for_build_processing: true, skip_screenshots: true, - skip_metadata: true + skip_metadata: true, + #skip_binary_upload: true ) end