From e6b4431ed48b29b1e59e67a7fee56cf211b994f2 Mon Sep 17 00:00:00 2001 From: Yehor Popovych Date: Mon, 12 Aug 2024 15:58:12 +0100 Subject: [PATCH] push pod to the repository on release (#113) --- .github/workflows/createRelease.yml | 1 + DatadogSDKTesting.podspec | 4 ++-- Makefile | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/createRelease.yml b/.github/workflows/createRelease.yml index 85d3b7fa..2c9d301a 100644 --- a/.github/workflows/createRelease.yml +++ b/.github/workflows/createRelease.yml @@ -33,6 +33,7 @@ jobs: - name: Build and upload XCFrameworks, recreate tag env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} run: make XC_LOG=archive version=${{ github.event.release.tag_name }} github - name: Attach Xcode logs if: '!cancelled()' diff --git a/DatadogSDKTesting.podspec b/DatadogSDKTesting.podspec index c7ee35bc..fe6775f7 100644 --- a/DatadogSDKTesting.podspec +++ b/DatadogSDKTesting.podspec @@ -2,8 +2,8 @@ Pod::Spec.new do |s| s.name = 'DatadogSDKTesting' s.module_name = 'DatadogSDKTesting' s.version = '2.5.0-alpha1' - s.summary = 'Swift testing framework for Datadog's CI Visibility product' - s.license = { :type => 'Apache', :file => 'LICENSE' } + s.summary = "Swift testing framework for Datadog's CI Visibility product" + s.license = 'Apache 2.0' s.homepage = 'https://www.datadoghq.com' s.social_media_url = 'https://twitter.com/datadoghq' diff --git a/Makefile b/Makefile index 6338a574..9bfeb012 100644 --- a/Makefile +++ b/Makefile @@ -84,6 +84,7 @@ release: github: release @:$(call check_defined, GH_TOKEN, GitHub token) + @:$(call check_defined, COCOAPODS_TRUNK_TOKEN, CocoaPods trunk token) # Upload binary file to GitHub release brew list gh &>/dev/null || brew install gh # upload xcframework @@ -98,6 +99,8 @@ github: release git commit -m "Updated binary package version to $(version)" git tag -f $(version) git push -f --tags origin update-binary + # Push Podfile + pod trunk push --allow-warnings DatadogSDKTesting.podspec clean: rm -rf ./build