Skip to content

Merge pull request #270 from mindbox-cloud/release/2.8.0 #94

Merge pull request #270 from mindbox-cloud/release/2.8.0

Merge pull request #270 from mindbox-cloud/release/2.8.0 #94

Workflow file for this run

name: SDK publish
on:
push:
branches:
- 'master'
- 'support/*'
tags-ignore:
- '**'
jobs:
unit:
runs-on: macos-13
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Update bundler
run: gem install bundler
- name: Install bundler dependencies
run: bundle install
- name: Run unit tests
run: bundle exec fastlane unitTestLane
publish:
needs: [unit]
runs-on: macos-13
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Release generation
run: ./git-release.sh "${{ github.event.head_commit.message }}" "${{secrets.GITHUBACCESSTOKEN}}" "${{secrets.GITHUBUSER}}"
- name: Update bundler
run: gem install bundler
- name: Install bundler dependencies
run: bundle install
- name: Select Xcode
run: sudo xcode-select --switch /Applications/Xcode_13.2.1.app
- name: Run build
run: bundle exec fastlane buildLane
env:
CI: true
- name: Deploy to Cocoapods
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push Mindbox.podspec --allow-warnings
pod trunk push MindboxNotifications.podspec --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TOKEN }}