Publish Frames.podspec #5
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
name: Publish Frames.podspec | |
on: workflow_dispatch | |
jobs: | |
publish: | |
environment: CocoaPodsRelease | |
runs-on: macos-12-xl | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check current branch | |
run: | | |
if [[ "${GITHUB_REF#refs/heads/}" != "main" && "${GITHUB_REF#refs/heads/}" != release/* ]]; then | |
echo "This workflow is expected to run on the main or release branch only." | |
exit 1 | |
fi | |
- name: Publish Frames.podspec | |
run: | | |
gem install cocoapods | |
pod trunk push Frames.podspec --allow-warnings | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} |