-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(v2): added support for deploy to Cocoapods manually
- Loading branch information
Pallab Maiti
committed
Jan 24, 2023
1 parent
cef2df5
commit 9fbc47d
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters