Skip to content

Commit

Permalink
ci(v2): added support for deploy to Cocoapods manually
Browse files Browse the repository at this point in the history
  • Loading branch information
Pallab Maiti committed Jan 24, 2023
1 parent cef2df5 commit 9fbc47d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/deploy-cocoapods-manual-v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy to Cocoapods(Manually)(v2)

on:
workflow_dispatch

jobs:
deploy-cocoapods-manual:
name: Draft a new release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/heads/master-v2')
steps:
- name: Checkout source branch
uses: actions/checkout@v3

- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_13.2.1.app/Contents/Developer'

- name: Install Cocoapods
run: gem install cocoapods

- name: Publish to CocoaPod
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
pod trunk push --allow-warnings
2 changes: 1 addition & 1 deletion .github/workflows/deploy-cocoapods-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
deploy-cocoapods-manual:
name: Draft a new release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/master-v2')
if: startsWith(github.ref, 'refs/heads/master')
steps:
- name: Checkout source branch
uses: actions/checkout@v3
Expand Down

0 comments on commit 9fbc47d

Please sign in to comment.