MBX-3346 Test publish with commented code #107
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: SDK publish | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'support/*' | |
- 'feature/MBX-3346-MindboxLoggerCI' | |
tags-ignore: | |
- '**' | |
jobs: | |
unit: | |
runs-on: macos-14 | |
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 | |
logger-publish: | |
needs: [unit] | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update bundler | |
run: gem install bundler | |
- name: Install bundler dependencies | |
run: bundle install | |
- name: Deploy to Cocoapods | |
run: | | |
set -eo pipefail | |
pod lib lint --allow-warnings | |
exit 1 | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TOKEN }} | |
# - name: Post to a Slack channel | |
# id: slack | |
# uses: slackapi/[email protected] | |
# with: | |
# channel-id: 'C06RXV161RA' | |
# payload: | | |
# { | |
# "text": "iOS - MindboxLogger release", | |
# "blocks": [ | |
# { | |
# "type": "header", | |
# "text": { | |
# "type": "plain_text", | |
# "text": "🚀 MindboxLogger tested." | |
# } | |
# } | |
# ] | |
# } | |
# env: | |
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_MOBILE_NOTIFIER_TOKEN }} | |
publish: | |
needs: [logger-publish] | |
if: always() | |
runs-on: macos-14 | |
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_14.3.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 | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TOKEN }} |