Skip to content

Commit 88bf56d

Browse files
authored
chore: refine workflows (#477)
* chore: refine workflows * chore: add readme to podspec
1 parent c4af22e commit 88bf56d

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
name: Build and Test
1717

1818
on:
19-
repository_dispatch:
20-
types: [build]
2119
pull_request:
2220
branches: ['*']
21+
push:
22+
branches:
23+
- main
2324
workflow_call:
2425

2526
concurrency:
@@ -101,7 +102,7 @@ jobs:
101102
run: |
102103
xcodebuild -workspace samples/SwiftDemoApp/SwiftDemoApp.xcworkspace \
103104
-scheme SwiftDemoApp -configuration Debug \
104-
-destination "platform=iOS Simulator,OS=17.5,name=iPhone 15" build | xcpretty
105+
-destination "platform=iOS Simulator,OS=17.4,name=iPhone 15" build | xcpretty
105106
106107
build_objc_sample:
107108
name: Build Objective-C Sample App with CocoaPods locally
@@ -110,7 +111,7 @@ jobs:
110111
steps:
111112
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
112113
- name: Checkout google-maps-ios-utils
113-
uses: actions/checkout@v3
114+
uses: actions/checkout@v4
114115

115116
- name: Install Dependencies
116117
run: sudo gem install cocoapods
@@ -122,7 +123,7 @@ jobs:
122123
run: |
123124
xcodebuild -workspace samples/ObjCDemoApp/ObjCDemoApp.xcworkspace \
124125
-scheme ObjCDemoApp -configuration Debug \
125-
-destination "platform=iOS Simulator,OS=17.5,name=iPhone 15" build | xcpretty
126+
-destination "platform=iOS Simulator,OS=17.4,name=iPhone 15" build | xcpretty
126127
127128
test: # used as required status check
128129
runs-on: ubuntu-latest

.github/workflows/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
# Note the "if" statement on all commands to make sure that publishing
3232
# only happens when a release is cut.
3333

34+
- if: ${{ steps.release.outputs.release_created }}
35+
name: Checkout
36+
uses: actions/checkout@v4
37+
3438
- if: ${{ steps.release.outputs.release_created }}
3539
name: Start publish
3640
uses: ./.github/workflows/publish.yml

Google-Maps-iOS-Utils.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Pod::Spec.new do |s|
1212
dependent on it.
1313
"
1414
s.homepage = "https://github.com/googlemaps/google-maps-ios-utils"
15+
s.readme = "https://github.com/googlemaps/google-maps-ios-utils/blob/main/README.md"
16+
s.changelog = "https://github.com/googlemaps/google-maps-ios-utils/blob/main/CHANGELOG.md"
1517
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
1618
s.authors = "Google Inc."
1719
s.platform = :ios, '14.0'

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,16 @@ range of applications using the [Google Maps SDK for iOS][sdk].
6565

6666
1. In your `Podfile`:
6767

68-
<!-- x-release-please-start-version -->
6968
```ruby
7069
use_frameworks!
7170

7271
target 'TARGET_NAME' do
7372
pod 'GoogleMaps', '8.0.0'
74-
pod 'Google-Maps-iOS-Utils', '5.0.0'
73+
pod 'Google-Maps-iOS-Utils', '5.0.0' # x-release-please-start-version
7574
end
7675
```
77-
<!-- x-release-please-end -->
7876

77+
(You can omit the comment "x-release-please-start-version" which is used for release automation.)
7978
Replace `TARGET_NAME` and save the `Podfile`.
8079

8180
2. At the command line in directory containing your `Podfile`, run:

0 commit comments

Comments
 (0)