Skip to content

Commit

Permalink
Update setting version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Apr 11, 2024
1 parent a2b897c commit e4e2c75
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@ jobs:
env:
GITHUB_REF_NAME: ${{ github.ref_name }}

- name: Set Version Number
# - name: Set Version Number
# run: |
# agvtool new-marketing-version ${{ env.APP_VERSION }}
# agvtool new-version -all ${{ github.run_number }}

- name: Update Version Numbers in .xcconfig
run: |
agvtool new-marketing-version ${{ env.APP_VERSION }}
agvtool new-version -all ${{ github.run_number }}
echo "MARKETING_VERSION = $APP_VERSION" > Release.xcconfig
echo "CURRENT_PROJECT_VERSION = $GITHUB_RUN_NUMBER" >> Release.xcconfig
env:
APP_VERSION: ${{ env.APP_VERSION }}
GITHUB_RUN_NUMBER: ${{ github.run_number }}

- name: Build App
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
Expand Down

0 comments on commit e4e2c75

Please sign in to comment.