Skip to content

hotfix/fix-carousel-download-image (#509) #535

hotfix/fix-carousel-download-image (#509)

hotfix/fix-carousel-download-image (#509) #535

Workflow file for this run

name: CD
on:
push:
branches:
- master
jobs:
build:
runs-on: macos-14
steps:
- name: Checkout the code
uses: actions/checkout@v2
with:
# Check out as an admin to allow for pushing back to master
token: ${{ secrets.GH_TOKEN }}
# We need to fetch all tags and branches
fetch-depth: 0
- name: Select xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4'
- name: Set git identity
run: |
git config --global user.name "Blu Release Bot"
git config --global user.email "devs@useblu.com.br"
- name: Bundle install
run: bundle install
- name: Increment version cocoapod
run: |
LATEST_VERSION_TOKENS_LIB_NPM=`npm show @useblu/ocean-tokens version`
rm OceanComponents.podspec
cp -fR OceanComponents.template OceanComponents.podspec
sed -i '' "s/#VERSION_NAME#/'$LATEST_VERSION_TOKENS_LIB_NPM-$GITHUB_RUN_NUMBER'/g" OceanComponents.podspec
- name: Commit changes
run: |
LATEST_VERSION_TOKENS_LIB_NPM=`npm show @useblu/ocean-tokens version`
git add . && git commit -am "chore: update tokens v$LATEST_VERSION_TOKENS_LIB_NPM [skip ci]" && git push
git tag -a "OceanComponents-$LATEST_VERSION_TOKENS_LIB_NPM-$GITHUB_RUN_NUMBER" -m "Release of version OceanComponents $LATEST_VERSION_TOKENS_LIB_NPM-$GITHUB_RUN_NUMBER" && git push --tags
- name: Fix cocoapod Xcode 15
run: |
cd /Applications/Xcode_15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/
sudo git clone https://github.com/kamyarelyasi/Libarclite-Files.git
sudo mv Libarclite-Files arc
- name: Deploy libary cocoapod OceanComponents
run: |
pod trunk push OceanComponents.podspec
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
- name: Install pods
run: pod install --repo-update
- name: Increment version app sample
run: bundle exec fastlane prepare_new_version
- name: Deploy app sample
run: bundle exec fastlane beta_testflight
env:
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}