File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : publish-to-cocoapods
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : macos-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ with :
14
+ submodules : true
15
+
16
+ - name : Install Cocoapods
17
+ run : gem install cocoapods
18
+
19
+ - name : Publish to Cocoapods registry
20
+ run : |
21
+ set -eo pipefail
22
+ pod lib lint --allow-warnings
23
+ pod trunk push --allow-warnings
24
+ env :
25
+ COCOAPODS_TRUNK_TOKEN : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
26
+ RELEASE_VERSION : ${{ github.event.release.tag_name }}
Original file line number Diff line number Diff line change
1
+ version = ENV [ "RELEASE_VERSION" ]
2
+ exit 1 if version . to_s . empty?
3
+
1
4
Pod ::Spec . new do |s |
2
5
s . name = 'GRMustache.swift'
3
- s . version = '5.0.1'
6
+ s . version = version
4
7
s . license = { :type => 'MIT' , :file => 'LICENSE' }
5
8
s . summary = 'Flexible Mustache templates for Swift.'
6
9
s . homepage = 'https://github.com/groue/GRMustache.swift'
You can’t perform that action at this time.
0 commit comments