Skip to content

Commit

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

- 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 dccea7e

Please sign in to comment.