Skip to content

Commit

Permalink
fix(swift): include privacy file in spm (#2950)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluf22 authored Apr 3, 2024
1 parent 2672087 commit 86a5b4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 deletions clients/algoliasearch-client-swift/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ jobs:
- name: Install CocoaPods
run: gem install cocoapods

- name: Publish on CocoaPods
- name: Publish release on Github
run: |
set -eo pipefail
pod trunk push --allow-warnings --verbose AlgoliaSearchClient.podspec
gh release create ${{ steps.versions.outputs.RELEASE_VERSION }} --title ${{ steps.versions.outputs.RELEASE_VERSION }} -F CHANGELOG.md --target ${{ github.sha }}
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
GH_TOKEN: ${{ github.token }}

- name: Publish release on Github
- name: Publish on CocoaPods
run: |
set -eo pipefail
gh release create ${{ steps.versions.outputs.RELEASE_VERSION }} --title ${{ steps.versions.outputs.RELEASE_VERSION }} -F CHANGELOG.md --target ${{ github.sha }}
pod trunk push --allow-warnings --verbose AlgoliaSearchClient.podspec
env:
GH_TOKEN: ${{ github.token }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
5 changes: 4 additions & 1 deletion templates/swift/Package.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ products.append(
dependencies: [
.target(name: "Core"),
] + extraTargetDependencies,
path: "Sources/\(library)"
path: "Sources/\(library)",
resources: [
.copy("../../PrivacyInfo.xcprivacy")
]
)
)
Expand Down

1 comment on commit 86a5b4e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please # to comment.