Skip to content

Commit

Permalink
cd script
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Mar 20, 2023
1 parent fc49833 commit ea3f524
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/set-user-agent.yml → .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
# it takes pull request name
# and automatically commit it as a package version
# pull request name should always be a version of a new release
#
# After version bump publishing Cocoapods release

name: set-user-agent
name: cd

on:
pull_request:
branches: [ main ]
branches: [ main, develop ]
env:
PACKAGE_VERSION: ${{ github.event.pull_request.title }}

Expand All @@ -18,6 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}

- name: Set User Agent
Expand All @@ -27,4 +30,12 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Set User Agent
tagging_message: ${{ github.event.pull_request.title }}
skip_checkout: true

- name: Publish to CocoaPod register
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
pod trunk push WalletConnectSwiftV2.podspec --verbose
1 change: 1 addition & 0 deletions Sources/WalletConnectIdentity/IdentityImports.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !CocoaPods
@_exported import WalletConnectNetworking
@_exported import WalletConnectJWT
#endif
2 changes: 1 addition & 1 deletion Sources/WalletConnectIdentity/IdentityKeyAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ enum IdentityKeyAPI: HTTPService {
}
}

var method: WalletConnectNetworking.HTTPMethod {
var method: HTTPMethod {
switch self {
case .registerIdentity, .registerInvite:
return .post
Expand Down
2 changes: 0 additions & 2 deletions Sources/WalletConnectRelay/RPC/Methods/Subscription.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

import Foundation
import WalletConnectUtils

struct Subscription: RelayRPC {

Expand Down
19 changes: 18 additions & 1 deletion WalletConnectSwiftV2.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,24 @@ Pod::Spec.new do |spec|

spec.subspec 'WalletConnectChat' do |ss|
ss.source_files = 'Sources/Chat/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectSigner'
ss.dependency 'WalletConnectSwiftV2/WalletConnectIdentity'
end

spec.subspec 'WalletConnectSigner' do |ss|
ss.source_files = 'Sources/WalletConnectSigner/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
end

spec.subspec 'WalletConnectIdentity' do |ss|
ss.source_files = 'Sources/WalletConnectIdentity/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
ss.dependency 'WalletConnectSwiftV2/WalletConnectJWT'
end

spec.subspec 'WalletConnectJWT' do |ss|
ss.source_files = 'Sources/WalletConnectJWT/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectKMS'
end

spec.subspec 'WalletConnectNetworking' do |ss|
Expand All @@ -117,7 +134,7 @@ Pod::Spec.new do |spec|

spec.subspec 'WalletConnectRelay' do |ss|
ss.source_files = 'Sources/WalletConnectRelay/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectKMS'
ss.dependency 'WalletConnectSwiftV2/WalletConnectJWT'
ss.resource_bundles = {
'WalletConnect_WalletConnectRelay' => [
'Sources/WalletConnectRelay/PackageConfig.json'
Expand Down

0 comments on commit ea3f524

Please sign in to comment.