From 7bfb696b55465900c4b909565c1c59a5468a72c6 Mon Sep 17 00:00:00 2001 From: Rick Clephas Date: Fri, 19 Nov 2021 21:50:02 +0100 Subject: [PATCH] Fix issue with duplicate CocoaPods releases --- .../workflows/release-swift-async-await.yaml | 19 +++++++++++++++++++ .github/workflows/release-swift.yaml | 15 --------------- 2 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/release-swift-async-await.yaml diff --git a/.github/workflows/release-swift-async-await.yaml b/.github/workflows/release-swift-async-await.yaml new file mode 100644 index 00000000..59298e08 --- /dev/null +++ b/.github/workflows/release-swift-async-await.yaml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/release-swift.yaml b/.github/workflows/release-swift.yaml index 8a2420c9..c7258b82 100644 --- a/.github/workflows/release-swift.yaml +++ b/.github/workflows/release-swift.yaml @@ -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 }} \ No newline at end of file