Skip to content

Commit

Permalink
push pod to the repository on release
Browse files Browse the repository at this point in the history
  • Loading branch information
ypopovych committed Aug 9, 2024
1 parent cd55ec7 commit 842937c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/createRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()'
Expand Down
4 changes: 2 additions & 2 deletions DatadogSDKTesting.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 842937c

Please sign in to comment.