Skip to content

Commit

Permalink
fix: cocoapods publish error
Browse files Browse the repository at this point in the history
  • Loading branch information
yeatse committed Oct 19, 2024
1 parent c4a79fb commit 4e8119e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cocoapods-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
deploy:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Install cocoapods
- name: Deploy to cocoapods
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
export LIB_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
gem install cocoapods
pod setup
perl -i -pe 'if (/^(\s*)def validated\?/) { $_ .= "${1} return true\n" }' "$(gem which cocoapods/validator)"
- name: Deploy to cocoapods
uses: michaelhenry/[email protected]
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

pod lib lint --allow-warnings
pod trunk push --allow-warnings
shell: bash

0 comments on commit 4e8119e

Please sign in to comment.