diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d42d1e18..5a10f560 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -92,7 +92,7 @@ jobs: run: flutter doctor - name: Set Version - run: sed -i "s/0.0.0+0/${{github.ref_name}}+0/g" pubspec.yaml + run: sed -i "s/0.0.0+0/1.1.2+1/g" pubspec.yaml - name: Binary run: flutter build linux --release @@ -138,7 +138,7 @@ jobs: - name: Set Version run: | brew install gsed - gsed -i "s/0.0.0+0/${{github.ref_name}}+0/g" pubspec.yaml + gsed -i "s/0.0.0+0/1.1.2+1/g" pubspec.yaml - name: Binary run: flutter build macos --release @@ -371,14 +371,14 @@ jobs: run: | bundle exec fastlane vcode export VCODE=$(bundle exec fastlane vcode | grep -o 'VersionCode: [0-9]*$' | grep -o '[0-9]*$') - gsed -i "s/0.0.0+0/${{github.ref_name}}+$VCODE/g" ../pubspec.yaml + gsed -i "s/0.0.0+0/1.1.2+1/g" ../pubspec.yaml - name: Binary(ipa) run: flutter build ipa --release --export-options-plist=./ios/export_options.plist - name: Release on App-Store working-directory: ios - run: if [[ "${{github.ref_name}}" == *"dev"* ]]; then bundle exec fastlane beta; else (bundle exec fastlane production 2>&1 | grep -v "A relationship value is not acceptable for the current resource state. - The specified pre-release build could not be added." || true); fi; + run: if [[ "1.1.2" == *"dev"* ]]; then bundle exec fastlane beta; else (bundle exec fastlane production 2>&1 | grep -v "A relationship value is not acceptable for the current resource state. - The specified pre-release build could not be added." || true); fi; - name: Upload Artifacts uses: actions/upload-artifact@v3 diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 51c46362..2bf78724 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -40,7 +40,7 @@ platform :ios do # ! Echo bigger number + 1 biggerBN = latestTestFlightBN > latestAppStoreBN ? latestTestFlightBN : latestAppStoreBN - UI.message "Please use VersionCode: #{biggerBN+1}" + UI.message "Please use VersionCode: #{biggerBN+2}" end ############ ? Prepare CI Lane ############