From 37c94c3a8b2956a58a4cac730d7c2c698ab17bc0 Mon Sep 17 00:00:00 2001 From: Kenny Hu Date: Tue, 30 Jul 2024 16:56:52 -0400 Subject: [PATCH] change release ci --- .github/workflows/release.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 463a134..7abf098 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Release on: release: - types: [created] + types: [ published ] jobs: release: @@ -12,18 +12,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '2.7' # Specify the Ruby version you are using - - - name: Install CocoaPods - run: gem install cocoapods - - - name: Validate podspec - run: pod lib lint --allow-warnings - - - name: Push to CocoaPods trunk + - uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} - run: pod trunk push RadarSDKMotion.podspec --allow-warnings \ No newline at end of file + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} \ No newline at end of file