chore: generated code for commit 517eef898afdfdbe3a41f61f6c119463506f… #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release package | |
on: | |
push: | |
branches: | |
- generated/feat/swift-release-process | |
jobs: | |
release: | |
name: Publish | |
runs-on: ubuntu-22.04 | |
if: "startsWith(github.event.head_commit.message, 'chore: generated code for commit')" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get versions | |
id: versions | |
shell: bash | |
run: | | |
echo "RELEASE_VERSION=$(cat clients/algoliasearch-client-swift/AlgoliaSearchClient.podspec | grep s.version | sed 's/ //g' | cut -d \' -f 2)" >> $GITHUB_OUTPUT | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0.3 | |
bundler-cache: true | |
- name: Install CocoaPods | |
run: cd clients/algoliasearch-client-swift && gem install cocoapods | |
- name: Publish on CocoaPods | |
run: | | |
set -eo pipefail | |
pod lib lint --allow-warnings --verbose clients/algoliasearch-client-swift/AlgoliaSearchClient.podspec | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
- name: Publish release on Github | |
run: | | |
set -eo pipefail | |
gh release create ${{ steps.versions.outputs.RELEASE_VERSION }} --title ${{ steps.versions.outputs.RELEASE_VERSION }} -F clients/algoliasearch-client-swift/CHANGELOG.md --target ${{ github.sha }} --draft | |
env: | |
GH_TOKEN: ${{ github.token }} |