File tree Expand file tree Collapse file tree 6 files changed +43
-116
lines changed Expand file tree Collapse file tree 6 files changed +43
-116
lines changed Original file line number Diff line number Diff line change
1
+ name : cd
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : macos-latest
11
+ steps :
12
+ - name : Git Checkout
13
+ uses : actions/checkout@v3
14
+ with :
15
+ fetch-depth : 0 # required to be able to find Git tags
16
+
17
+ - name : Deploy to CocoaPods Trunk
18
+ run : |
19
+ set -eo pipefail
20
+ export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
21
+ pod lib lint --allow-warnings
22
+ pod trunk push --allow-warnings
23
+ env :
24
+ COCOAPODS_TRUNK_TOKEN : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
Original file line number Diff line number Diff line change @@ -13,6 +13,21 @@ concurrency:
13
13
cancel-in-progress : true
14
14
15
15
jobs :
16
+ lint-podspec :
17
+ name : lint podspec
18
+ runs-on : macos-latest
19
+ steps :
20
+ - name : Git Checkout
21
+ uses : actions/checkout@v3
22
+ with :
23
+ fetch-depth : 0 # required to be able to find Git tags
24
+
25
+ - name : Lint Podspec
26
+ run : |
27
+ set -eo pipefail
28
+ export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
29
+ pod lib lint --allow-warnings
30
+
16
31
ci :
17
32
name : ${{ matrix.platform[0] }} ${{ matrix.platform[1] }}
18
33
runs-on : ${{ matrix.os }}
41
56
- platform : [macos, 12]
42
57
os : macos-12
43
58
xcode : 14.0.1
44
-
45
59
steps :
46
60
- name : Git Checkout
47
61
uses : actions/checkout@v3
54
68
- name : Install Homebrew dependencies
55
69
run : brew install xcbeautify
56
70
57
- - name : Lint Podspec
58
- run : pod lib lint
59
-
60
71
- name : Run Tests
61
72
run : fastlane ${{ matrix.platform[0] }} test version:${{ matrix.platform[1] }}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |spec |
2
2
spec . name = 'Introspect'
3
- spec . version = '0.2.2'
3
+ spec . version = ENV [ 'LIB_VERSION' ]
4
4
spec . license = { type : 'MIT' }
5
5
spec . homepage = 'https://github.com/siteline/SwiftUI-Introspect.git'
6
6
spec . authors = { 'Lois Di Qual' => 'lois@siteline.com' }
Original file line number Diff line number Diff line change @@ -166,22 +166,14 @@ Releasing
166
166
---------
167
167
168
168
1 . Update changelog with new version
169
- 2 . Bump version in ` Introspect.podspec `
170
- 3 . PR and merge changes
171
- 4 . Tag new version:
169
+ 2 . PR as 'Bump to X.Y.Z' and merge it
170
+ 3 . Tag new version:
172
171
173
172
``` sh
174
- $ git tag -a < VERSION > -m " <MESSAGE> "
173
+ $ git tag X.Y.Z
175
174
$ git push origin --tags
176
175
```
177
176
178
- 5. Push to CocoaPods trunk:
179
-
180
- ` ` ` sh
181
- $ bundle exec pod trunk push .
182
- ` ` `
183
-
184
-
185
177
< ! -- References -->
186
178
187
179
[GithubCI_Status]: https://github.com/siteline/swiftui-introspect/actions/workflows/ci.yml/badge.svg? branch=master
You can’t perform that action at this time.
0 commit comments