Skip to content

Commit f062ed9

Browse files
committed
Fix CI deploy
1 parent f1f7ee3 commit f062ed9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ if: type != push OR branch = master OR branch =~ /^deploy-\d+\.\d+\.\d+(-.*)?$/
33

44
stages:
55
- name: pretest
6+
if: NOT branch =~ /^deploy-\d+\.\d+\.\d+(-.*)?$/
67
- name: test
8+
if: NOT branch =~ /^deploy-\d+\.\d+\.\d+(-.*)?$/
79
- name: deploy
810
if: branch =~ /^deploy-\d+\.\d+\.\d+(-.*)?$/
911
- name: publish
@@ -86,14 +88,16 @@ jobs:
8688
- stage: deploy
8789
name: Deploy
8890
osx_image: xcode11
91+
env: HOMEBREW_NO_INSTALL_CLEANUP=1
92+
install: brew install mxcl/made/swift-sh
8993
script:
94+
- set -e
9095
- export VERSION=$(echo $TRAVIS_TAG | cut -c 8-)
9196
- git tag "$VERSION"
92-
- git remote set-url origin "https://[email protected]/mxcl/homebrew-made.git"
97+
- git remote set-url origin "https://[email protected]/$TRAVIS_REPO_SLUG.git"
98+
- git fetch --unshallow origin
9399
- git push origin "$VERSION"
94-
- curl -O https://raw.githubusercontent.com/mxcl/ops/master/deploy
95-
- chmod u+x deploy
96-
- ./deploy publish-release
100+
- swift sh <(curl https://raw.githubusercontent.com/mxcl/ops/master/deploy) publish-release
97101
- git push origin :$TRAVIS_TAG
98102

99103
- stage: publish

0 commit comments

Comments
 (0)