-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CocoaPods Deploy GitHub workflow (#7176)
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
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,30 @@ | ||
name: CocoaPods Deploy | ||
|
||
# This must be run after the iOS release job has finished, and the iOS release | ||
# asset has been uploaded to Github. | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_tag: | ||
description: 'Release tag to deploy (e.g., v1.42.2)' | ||
required: true | ||
default: 'v1.42.2' | ||
|
||
jobs: | ||
cocoapods-deploy: | ||
name: cocoapods-deploy | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out iOS/CocoaPods directory | ||
uses: Bhacaz/checkout-files@49fc3050859046bf4f4873678d46099985640e89 | ||
with: | ||
files: ios/CocoaPods | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.event.inputs.release_tag }} | ||
- name: Move podspec to root | ||
run: mv ios/CocoaPods/*.podspec . | ||
- name: Install CocoaPods | ||
run: gem install cocoapods | ||
- uses: michaelhenry/deploy-to-cocoapods-github-action@745686ab065f90596e0d5cfcf97bb2416d94262e | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} |