@@ -38,10 +38,12 @@ jobs:
3838 - name : Checkout submodules
3939 run : git submodule update -f --init --remote
4040 - name : Check for proper semantic versioning
41+ env :
42+ GITHUB_REF : ${{ github.ref }}
4143 run : |
4244 buildNumber="$(git tag --sort="v:refname" | grep "Quicksy_Build_iOS" | tail -n1 | sed 's/Quicksy_Build_iOS_//g')"
4345 version="$(git log -n 1 --merges --pretty=format:%s | sed -E 's/^[\t\n ]*([^\n\t ]+)[\t\n ]+\(([^\n\t ]+)\)[\t\n ]*$/\1/g')"
44- if [ "${{ github.ref } }" != "refs/heads/stable" ]; then
46+ if [ "${GITHUB_REF }" != "refs/heads/stable" ]; then
4547 version="1.$buildNumber.0"
4648 fi
4749
5658 echo "New buildNumber is $buildNumber"
5759 git tag Quicksy_Build_iOS_$buildNumber
5860 - name : Extract version number and changelog from newest merge commit
61+ env :
62+ GITHUB_REF : ${{ github.ref }}
5963 id : releasenotes
6064 run : |
6165 function repairNotes {
7983 }
8084 buildNumber="$(git tag --sort="v:refname" | grep "Quicksy_Build_iOS" | tail -n1 | sed 's/Quicksy_Build_iOS_//g')"
8185 version="$(git log -n 1 --merges --pretty=format:%s | sed -E 's/^[\t\n ]*([^\n\t ]+)[\t\n ]+\(([^\n\t ]+)\)[\t\n ]*$/\1/g')"
82- if [ "${{ github.ref } }" != "refs/heads/stable" ]; then
86+ if [ "${GITHUB_REF }" != "refs/heads/stable" ]; then
8387 version="1.$buildNumber.0"
8488 fi
8589 mkdir -p /Users/ci/quicksy_releases
@@ -155,9 +159,11 @@ jobs:
155159 - name : Publish ios to appstore connect
156160 # run: xcrun altool --upload-app --file ./Monal/build/ipa/Quicksy.ipa --type ios --asc-provider S8D843U34Y --team-id S8D843U34Y -u $(cat /Users/ci/apple_connect_upload_mail.txt) -p "$(cat /Users/ci/apple_connect_upload_secret.txt)"
157161 env :
162+ APP_VERSION : ${{ steps.releasenotes.outputs.version }}
158163 DELIVER_METADATA_PATH : ${{ steps.metadata.outputs.path_ios }}
164+ FASTLANE_METADATA_DIRECTORY : ${{ steps.metadata.outputs.path }}
159165 run : |
160- fastlane run upload_to_app_store api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" ipa:"./Monal/build/ipa/Quicksy.ipa" app_version:"${{ steps.releasenotes.outputs.version } }" platform:ios reject_if_possible:true submit_for_review:true automatic_release:true skip_metadata:false skip_screenshots:true precheck_include_in_app_purchases:false version_check_wait_retry_limit:10 force:true
166+ fastlane run upload_to_app_store api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" ipa:"./Monal/build/ipa/Quicksy.ipa" app_version:"${APP_VERSION }" platform:ios reject_if_possible:true submit_for_review:true automatic_release:true skip_metadata:false skip_screenshots:true precheck_include_in_app_purchases:false version_check_wait_retry_limit:10 force:true
161167 - name : Remove fastlane metadata directory
162168 run : |
163- rm -rf "${{ steps.metadata.outputs.path } }"
169+ rm -rf "${FASTLANE_METADATA_DIRECTORY }"
0 commit comments