Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(github): action #10

Merged
merged 2 commits into from
Mar 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
name: Publish to TestFlight and Bump Version

on:
push:
pull_request:
types:
- closed
branches:
- master

jobs:
publish_and_version_bump:
if: github.event.pull_request.merged == true
uses: rees46/workflow/.github/workflows/reusable-ios-testflight-publish.yaml@master
with:
app_identifier: "com.rees46.demo-shop"
ipa_file: "build/demo-store-ios.ipa"
PROPERTIES_FILE: "version.properties"
xcworkspace: "demo-store-ios.xcworkspace"
scheme: "demo-store-ios"
export_options_plist: "ExportOptions.plist"
xcworkspace: "demo-store-ios.xcworkspace"
codeSignIdentity: "Apple Distribution: M.Kechinov's web-development studio, LLC (MYA32EHWN4)"
developmentTeam: "MYA32EHWN4"
provisioningProfileSpecifier: "demo-ios"
secrets:
GITHUB_APP_ID: ${{ vars.PUBLIVERSIONER_ID }}
GITHUB_APP_PRIVATE_KEY: ${{ secrets.PUBLIVERSIONER_SECRET }}
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_AS_BASE64_STRING }}
GITHUB_APP_ID: ${{ vars.PUBLIVERSIONER_ID }}
GITHUB_APP_PRIVATE_KEY: ${{ secrets.PUBLIVERSIONER_SECRET }}
IOS_CERTIFICATE_P12: ${{ secrets.IOS_CERTIFICATE_P12 }}
IOS_CERTIFICATE_PASSWORD: ${{ secrets.IOS_CERTIFICATE_PASSWORD }}
IOS_PROVISIONING_PROFILE: ${{ secrets.IOS_PROVISIONING_PROFILE }}
20 changes: 20 additions & 0 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync repositories

on:
pull_request:
workflow_run:
workflows:
- "Bump version, create release and publish"
types:
- completed
workflow_dispatch:

jobs:
run:
if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch'
uses: rees46/workflow/.github/workflows/reusable-ios-synchronization.yaml@master
permissions: write-all
secrets:
token: ${{ secrets.JADE_SMITH_BOT_TOKEN }}
with:
targetRepository: personaclick/ios-sdk
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,5 @@ Pods/
# End of https://www.gitignore.io/api/xcode,swift,macos,objective-c
/fastlane/fastlane/Appfile
/Gemfile.lock

.local/
4 changes: 4 additions & 0 deletions App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleVersion</key>
<string>3</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
Expand Down
23 changes: 14 additions & 9 deletions ExportOptions.plist
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"\>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
<key>uploadSymbols</key>
<true/>
<key>uploadBitcode</key>
<false/>
</dict>
<dict>
<key>method</key>
<string>app-store</string>
<key>uploadSymbols</key>
<true/>
<key>uploadBitcode</key>
<false/>
<key>provisioningProfiles</key>
<dict>
<key>com.rees46.demo-shop</key>
<string>demo-ios</string>
</dict>
</dict>
</plist>
6 changes: 5 additions & 1 deletion Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>


<key>CFBundleVersion</key>
<string>3</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>

<key>NSAppTransportSecurity</key>
<dict>
Expand Down
3 changes: 3 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ SPEC CHECKSUMS:
REES46: aaf11c8ef6382ca6eb649d0919875d100151e5bc
Resolver: 0e2ce51257e9366c54afe1b9e9be25059e9b9300

PODFILE CHECKSUM: 864b8725a1afdeadc308336eb5bd4b4cf84dc792
PODFILE CHECKSUM: 2e8983ec0dff4d9166fb49e27b81e36cbd77b11e

COCOAPODS: 1.16.2
423 changes: 0 additions & 423 deletions demo-store-ios.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION_CODE=1
VERSION_NAME=1.0.0
VERSION_CODE=3
VERSION_NAME=1.0.3
Loading