Skip to content

Commit

Permalink
Update objective-c-xcode.yml
Browse files Browse the repository at this point in the history
Automatic bundle numbering.
  • Loading branch information
cabal95 authored Oct 2, 2024
1 parent 4e4c49f commit 2dbdd85
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/objective-c-xcode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
build_with_signing:
runs-on: macos-latest
steps:
- name: checkout repository
- name: Checkout Repository
uses: actions/checkout@v4.2.0

- name: Install the Apple certificate and provisioning profile
- name: Install certificate and provisioning profile
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
Expand Down Expand Up @@ -54,7 +54,18 @@ jobs:
echo "PROFILE_NAME=$PROFILE_NAME" >> $GITHUB_ENV
- name: build archive
- name: Get Timestamp
id: timestamp
uses: release-kit/unix-timestamp@v1

- name: Update Build Number
uses: damienaicheh/update-ios-version-info-plist-action@v1.2.0
with:
info-plist-path: "./ios/RockCheckin/RockCheckin-Info.plist"
bundle-version: "${{ steps.timestamp.outputs.timestamp }}"
print-file: true

- name: Build Archive
run: |
cd ios
xcodebuild -scheme "RockCheckin" \
Expand All @@ -67,7 +78,7 @@ jobs:
CODE_SIGN_IDENTITY="iPhone Distribution" \
PROVISIONING_PROFILE_SPECIFIER="${{ env.PROFILE_NAME }}"
- name: export ipa
- name: Export IPA
env:
EXPORT_OPTIONS_PLIST: ${{ secrets.EXPORT_OPTIONS_PLIST }}
run: |
Expand All @@ -77,7 +88,7 @@ jobs:
xcodebuild -exportArchive -archivePath $RUNNER_TEMP/rockcheckin.xcarchive -exportOptionsPlist $EXPORT_OPTS_PATH -exportPath $RUNNER_TEMP/build
ls -l $RUNNER_TEMP/build
- name: Upload application
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: app
Expand Down

0 comments on commit 2dbdd85

Please sign in to comment.