Skip to content

Commit e4e2c75

Browse files
Update setting version in CI
1 parent a2b897c commit e4e2c75

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/build-and-release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,18 @@ jobs:
2323
env:
2424
GITHUB_REF_NAME: ${{ github.ref_name }}
2525

26-
- name: Set Version Number
26+
# - name: Set Version Number
27+
# run: |
28+
# agvtool new-marketing-version ${{ env.APP_VERSION }}
29+
# agvtool new-version -all ${{ github.run_number }}
30+
31+
- name: Update Version Numbers in .xcconfig
2732
run: |
28-
agvtool new-marketing-version ${{ env.APP_VERSION }}
29-
agvtool new-version -all ${{ github.run_number }}
33+
echo "MARKETING_VERSION = $APP_VERSION" > Release.xcconfig
34+
echo "CURRENT_PROJECT_VERSION = $GITHUB_RUN_NUMBER" >> Release.xcconfig
35+
env:
36+
APP_VERSION: ${{ env.APP_VERSION }}
37+
GITHUB_RUN_NUMBER: ${{ github.run_number }}
3038

3139
- name: Build App
3240
run: xcodebuild -project IPMenuBar.xcodeproj -scheme "IPMenuBar - Release" -configuration Release clean build -derivedDataPath './build' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO

0 commit comments

Comments
 (0)