File tree Expand file tree Collapse file tree 7 files changed +57
-6
lines changed Expand file tree Collapse file tree 7 files changed +57
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Prepare release
2
+
3
+ on :
4
+ pull_request :
5
+ types : [ labeled ]
6
+ branches :
7
+ - master
8
+
9
+ jobs :
10
+ prepare-release :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@v2
15
+ with :
16
+ fetch-depth : 0
17
+ - name : Fetch the lastest release version
18
+ id : fetch_latest_release
19
+ uses : pozetroninc/github-action-get-latest-release@master
20
+ with :
21
+ repository : ${{ github.repository }}
22
+ excludes : prerelease, draft
23
+ - uses : actions/checkout@v2
24
+ with :
25
+ repository : pusher/actions
26
+ token : ${{ secrets.PUSHER_CI_GITHUB_PRIVATE_TOKEN }}
27
+ path : .github/actions
28
+ - uses : ./.github/actions/prepare-version-bump
29
+ id : bump
30
+ with :
31
+ current_version : ${{ steps.fetch_latest_release.outputs.release }}
32
+ - uses : actions/setup-node@v3
33
+ with :
34
+ node-version : 16.x
35
+ - name : " Bump podspec versions"
36
+ shell : bash
37
+ run : |
38
+ npm install --location=global podspec-bump
39
+
40
+ sed -i 's/${{ steps.bump.outputs.current_version }}/${{ steps.bump.outputs.new_version }}/1' Tests/Integration/PusherClientInitializationTests.swift
41
+ sed -i 's/${{ steps.bump.outputs.current_version }}/${{ steps.bump.outputs.new_version }}/1' Tests/Info.plist
42
+ sed -i 's/${{ steps.bump.outputs.current_version }}/${{ steps.bump.outputs.new_version }}/1' Sources/PusherSwift.swift
43
+ sed -i 's/${{ steps.bump.outputs.current_version }}/${{ steps.bump.outputs.new_version }}/1' Sources/Info.plist
44
+
45
+ podspec-bump -i ${{ steps.bump.outputs.new_version }} -w -p PusherSwift.podspec
46
+ podspec-bump -i ${{ steps.bump.outputs.new_version }} -w -p PusherSwiftWithEncryption.podspec
47
+
48
+ git add Tests/Integration/PusherClientInitializationTests.swift Tests/Info.plist Sources/PusherSwift.swift Sources/Info.plist PusherSwift.podspec PusherSwiftWithEncryption.podspec
49
+
50
+ git commit -m "Bump to version ${{ steps.bump.outputs.new_version }}"
51
+ git push
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'PusherSwift'
3
- s . version = '10.1.0 '
3
+ s . version = '10.1.1 '
4
4
s . summary = 'A Pusher client library in Swift'
5
5
s . homepage = 'https://github.com/pusher/pusher-websocket-swift'
6
6
s . license = 'MIT'
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'PusherSwiftWithEncryption'
3
- s . version = '10.1.0 '
3
+ s . version = '10.1.1 '
4
4
s . summary = 'A Pusher client library in Swift that supports encrypted channels'
5
5
s . homepage = 'https://github.com/pusher/pusher-websocket-swift'
6
6
s . license = 'MIT'
Original file line number Diff line number Diff line change 15
15
<key >CFBundlePackageType </key >
16
16
<string >FMWK </string >
17
17
<key >CFBundleShortVersionString </key >
18
- <string >10.1.0 </string >
18
+ <string >10.1.1 </string >
19
19
<key >CFBundleSignature </key >
20
20
<string >???? </string >
21
21
<key >CFBundleVersion </key >
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Foundation
2
2
import NWWebSocket
3
3
4
4
let PROTOCOL = 7
5
- let VERSION = " 10.1.0 "
5
+ let VERSION = " 10.1.1 "
6
6
// swiftlint:disable:next identifier_name
7
7
let CLIENT_NAME = " pusher-websocket-swift "
8
8
Original file line number Diff line number Diff line change 15
15
<key >CFBundlePackageType </key >
16
16
<string >BNDL </string >
17
17
<key >CFBundleShortVersionString </key >
18
- <string >10.1.0 </string >
18
+ <string >10.1.1 </string >
19
19
<key >CFBundleSignature </key >
20
20
<string >???? </string >
21
21
<key >CFBundleVersion </key >
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import XCTest
2
2
3
3
@testable import PusherSwift
4
4
5
- let VERSION = " 10.1.0 "
5
+ let VERSION = " 10.1.1 "
6
6
7
7
class ClientInitializationTests : XCTestCase {
8
8
private var key : String !
You can’t perform that action at this time.
0 commit comments