Skip to content

Commit

Permalink
Fix issue with duplicate CocoaPods releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rickclephas committed Nov 19, 2021
1 parent 6d708df commit 7bfb696
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release-swift-async-await.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish a Swift release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-swift-async-await'
jobs:
publish-cocoapods-async:
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.2-beta'
- name: Publish KMPNativeCoroutinesAsync
run: pod trunk push KMPNativeCoroutinesAsync.podspec --synchronous
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
15 changes: 0 additions & 15 deletions .github/workflows/release-swift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,5 @@ jobs:
xcode-version: '13.1'
- name: Publish KMPNativeCoroutinesRxSwift
run: pod trunk push KMPNativeCoroutinesRxSwift.podspec --synchronous
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
publish-cocoapods-async:
needs: publish-cocoapods-core
if: endsWith(github.ref, '-swift-async-await')
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.2-beta'
- name: Publish KMPNativeCoroutinesAsync
run: pod trunk push KMPNativeCoroutinesAsync.podspec --synchronous
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

0 comments on commit 7bfb696

Please sign in to comment.