fix: create var animation time #1510
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: CI | |
on: | |
push | |
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 | |
ref: ${{ github.head_ref || github.ref_name }} | |
- 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: Fix cocoapod Xcode 15 | |
run: | | |
cd /Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/ | |
sudo git clone https://github.com/kamyarelyasi/Libarclite-Files.git | |
sudo mv Libarclite-Files arc | |
- name: Install dependencies, update tokens and deploy | |
run: | | |
LATEST_VERSION_TOKENS_LIB_NPM=`npm show @useblu/ocean-tokens version` | |
LATEST_VERSION_TOKENS=`cat oceantokenversion` | |
if [ $LATEST_VERSION_TOKENS_LIB_NPM != $LATEST_VERSION_TOKENS ] | |
then | |
brew install mint | |
mint install SwiftGen/SwiftGen | |
sh update_tokens.sh | |
echo $LATEST_VERSION_TOKENS_LIB_NPM > oceantokenversion | |
rm OceanTokens.podspec | |
rm OceanComponents.template | |
cp -fR OceanTokens.template OceanTokens.podspec | |
cp -fR OceanComponents.token.template OceanComponents.template | |
sed -i '' "s/#VERSION_NAME#/'$LATEST_VERSION_TOKENS_LIB_NPM-$GITHUB_RUN_NUMBER'/g" OceanTokens.podspec | |
sed -i '' "s/#VERSION_NAME_TOKEN#/'$LATEST_VERSION_TOKENS_LIB_NPM-$GITHUB_RUN_NUMBER'/g" OceanComponents.template | |
git add . && git commit -am "chore: update tokens v$LATEST_VERSION_TOKENS_LIB_NPM [skip ci]" && git push origin $BRANCH_NAME | |
git tag -a "OceanTokens-$LATEST_VERSION_TOKENS_LIB_NPM-$GITHUB_RUN_NUMBER" -m "Release of version OceanTokens $LATEST_VERSION_TOKENS_LIB_NPM-$GITHUB_RUN_NUMBER" && git push --tags | |
pod trunk push OceanTokens.podspec | |
fi | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
- name: Install pods | |
run: pod install | |
- name: Run tests | |
run: bundle exec fastlane build_test |