Skip to content

Commit 469540c

Browse files
committed
Update travis to push spm
1 parent ae7f53d commit 469540c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ xcode_destination: platform=iOS Simulator,OS=15.0,name=iPhone 12
1111
cache: cocoapods
1212
podfile: Podfile
1313
before_install:
14+
- >
15+
if ! [ -z "$TRAVIS_TAG" ] && grep -q "/$TRAVIS_TAG/" Package.swift; then
16+
echo "Duplicate build from SPM update"
17+
exit 1
18+
fi
1419
- gem install cocoapods # Since Travis is not always on latest version
1520
- pod install
1621

1722
before_deploy:
1823
- ./Tools/verifyTag.sh
19-
- >
20-
if ! [ "$BUILD_ONCE" ] && grep -q "/$TRAVIS_TAG/" Package.swift; then
21-
echo "Duplicate build from SPM update"
22-
exit 1
23-
fi
2424
- >
2525
if ! [ "$BUILD_ONCE" ]; then
2626
export BUILD_ONCE=1;
@@ -55,6 +55,9 @@ deploy:
5555
skip_cleanup: true
5656
script:
5757
>-
58+
git config --local user.email "[email protected]";git config --local user.name "leanplum-e2";
59+
git remote set-url origin https://leanplum-e2:[email protected]/Leanplum/Leanplum-iOS-SDK.git;
60+
export RELEASE_VERSION=${TRAVIS_TAG%-*};git checkout -b release/$RELEASE_VERSION;
5861
git restore --staged .; git add Package.swift; git commit -m 'update spm';
5962
git tag -f `cat sdk-version.txt`; git push -f origin `cat sdk-version.txt`;
6063
on:

0 commit comments

Comments
 (0)