Skip to content

Commit

Permalink
change release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyHuRadar committed Jul 30, 2024
1 parent 4d6ed68 commit 37c94c3
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
release:
types: [created]
types: [ published ]

jobs:
release:
Expand All @@ -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
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

0 comments on commit 37c94c3

Please sign in to comment.