From 4e8119e88f331de8701013ef3e81a119e3184afa Mon Sep 17 00:00:00 2001 From: Yang Chao Date: Sun, 20 Oct 2024 00:16:12 +0800 Subject: [PATCH] fix: cocoapods publish error --- .github/workflows/cocoapods-deploy.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cocoapods-deploy.yaml b/.github/workflows/cocoapods-deploy.yaml index 6307c8b..e8e3e5b 100644 --- a/.github/workflows/cocoapods-deploy.yaml +++ b/.github/workflows/cocoapods-deploy.yaml @@ -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/deploy-to-cocoapods-github-action@1.0.10 - env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} - + pod lib lint --allow-warnings + pod trunk push --allow-warnings + shell: bash