Skip to content

Commit

Permalink
chore: bump build v1.1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed May 9, 2024
1 parent 004db4a commit 08b272f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ############
Expand Down

0 comments on commit 08b272f

Please sign in to comment.