From b3de306d646eb5715a2148e4fae9555f7728c6f5 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 25 Apr 2023 15:22:31 +0700 Subject: [PATCH] [316] Add set the build version in CodeMagic --- codemagic.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/codemagic.yaml b/codemagic.yaml index 58272b88..6bd288a2 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -22,6 +22,13 @@ workflows: script: bundle install --path vendor/bundle - name: Install Pods Dependencies script: bundle exec pod install + - name: Set the build version + script: | + #!/bin/sh + set -e + set -x + cd $CM_BUILD_DIR + agvtool new-version -all $(($BUILD_NUMBER + 1)) - name: Build and Test script: bundle exec fastlane buildAndTest - name: Match Ad-hoc @@ -54,6 +61,13 @@ workflows: script: bundle install --path vendor/bundle - name: Install Pods Dependencies script: bundle exec pod install + - name: Set the build version + script: | + #!/bin/sh + set -e + set -x + cd $CM_BUILD_DIR + agvtool new-version -all $(($BUILD_NUMBER + 1)) - name: Build and Test script: bundle exec fastlane buildAndTest - name: Match Ad-hoc @@ -86,6 +100,13 @@ workflows: script: bundle install --path vendor/bundle - name: Install Pods Dependencies script: bundle exec pod install + - name: Set the build version + script: | + #!/bin/sh + set -e + set -x + cd $CM_BUILD_DIR + agvtool new-version -all $(($BUILD_NUMBER + 1)) - name: Build and Test script: bundle exec fastlane buildAndTest - name: Match AppStore