OPS: Cache provision profiles

This commit is contained in:
Marcos Rodriguez Velez 2024-08-11 23:38:04 -04:00 committed by Overtorment
parent 0db76c63c9
commit f26177a6ce

View file

@ -78,8 +78,32 @@ jobs:
ITC_TEAM_ID: ${{ secrets.ITC_TEAM_ID }}
ITC_TEAM_NAME: ${{ secrets.ITC_TEAM_NAME }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
run: bundle exec fastlane ios setup_provisioning_profiles
run: |
bundle exec fastlane ios setup_provisioning_profiles
working-directory: ./ios
- name: Cache Provisioning Profiles
id: cache_provisioning_profiles
uses: actions/cache@v2
with:
path: ~/Library/MobileDevice/Provisioning Profiles
key: ${{ runner.os }}-provisioning-profiles-${{ github.sha }}
restore-keys: |
${{ runner.os }}-provisioning-profiles-
- name: Check Cache Status for Provisioning Profiles
run: |
if [ -n "${{ steps.cache_provisioning_profiles.outputs.cache-hit }}" ]; then
echo "Provisioning profiles were restored from cache."
else
echo "No cache found for provisioning profiles. A new cache will be created."
fi
- name: Verify Provisioning Profiles Exist
run: |
if [ -d "~/Library/MobileDevice/Provisioning Profiles" ]; then
echo "Provisioning profiles are available in the cache."
ls -la ~/Library/MobileDevice/Provisioning Profiles
else
echo "Provisioning profiles directory does not exist."
fi
- name: Generate Build Number based on timestamp
id: generate_build_number
run: |