Delete pushed version tag on failed deploy
This commit is contained in:
@@ -90,15 +90,18 @@ jobs:
|
|||||||
osx_image: xcode11
|
osx_image: xcode11
|
||||||
env: HOMEBREW_NO_INSTALL_CLEANUP=1
|
env: HOMEBREW_NO_INSTALL_CLEANUP=1
|
||||||
install: brew install mxcl/made/swift-sh
|
install: brew install mxcl/made/swift-sh
|
||||||
|
git.depth: false
|
||||||
script:
|
script:
|
||||||
- set -e
|
- set -e
|
||||||
- export VERSION=$(echo $TRAVIS_TAG | cut -c 8-)
|
- export VERSION=$(echo $TRAVIS_TAG | cut -c 8-)
|
||||||
- git tag "$VERSION"
|
- git tag "$VERSION" --force
|
||||||
- git remote set-url origin "https://$GITHUB_TOKEN@github.com/$TRAVIS_REPO_SLUG.git"
|
- git remote set-url origin "https://$GITHUB_TOKEN@github.com/$TRAVIS_REPO_SLUG.git"
|
||||||
- git fetch --unshallow origin
|
|
||||||
- git push origin "$VERSION"
|
- git push origin "$VERSION"
|
||||||
- swift sh <(curl https://raw.githubusercontent.com/mxcl/ops/master/deploy) publish-release
|
- swift sh <(curl https://raw.githubusercontent.com/mxcl/ops/master/deploy) publish-release
|
||||||
- git push origin :$TRAVIS_TAG
|
- git push origin :$TRAVIS_TAG
|
||||||
|
after_failure: |
|
||||||
|
export VERSION=$(echo $TRAVIS_TAG | cut -c 8-)
|
||||||
|
git push origin :$VERSION
|
||||||
|
|
||||||
- stage: publish
|
- stage: publish
|
||||||
name: Jazzy
|
name: Jazzy
|
||||||
|
|||||||
Reference in New Issue
Block a user