consolidate release phase

This commit is contained in:
Keefer Taylor 2019-11-03 11:19:47 -08:00 committed by GitHub
parent 292153124c
commit 631eacea10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 7 deletions

View File

@ -26,17 +26,14 @@ jobs:
- set -o pipefail && xcodebuild test -scheme MnemonicKit_iOS -destination 'platform=iOS Simulator,name=iPhone XS,OS=12.2' ONLY_ACTIVE_ARCH=YES | xcpretty
- slather
- bash <(curl -s https://codecov.io/bash)
- stage: Release - CocoaPods
- stage: Release - If Tagged Commit
script:
- echo "Building CocoaPods Release If Tag is Present"
before_deploy:
- pod trunk push --skip-import-validation --skip-tests --allow-warnings
- stage: Release - Carthage
script:
- echo "Building Carthage Release If Tag is Present"
- echo "Checking for release tag"
before_deploy:
- brew outdated cocoapods || brew upgrade cocoapods
- brew outdated carthage || brew upgrade carthage
- brew install xcodegen
- pod trunk push --skip-import-validation --skip-tests --allow-warnings
- xcodegen generate
- carthage build --no-skip-current --platform iOS,mac --cache-builds
- carthage archive $FRAMEWORK_NAME