
With the recent Travis changes, we prevented the deploy stage from running for tagged commits as branch=tag for tagged commits. Fix this by also running deploy for tagged commits. Furthermore, clean up .travis.yml by pulling the edge tagging logic into a separate script. A logic change is introduced to prevent git tag --force being run on set tags as this would turn annotated tags into lightweight tags.
9 lines
210 B
Bash
Executable File
9 lines
210 B
Bash
Executable File
#!/bin/sh -xe
|
|
|
|
if [ -z "$TRAVIS_TAG" ]; then
|
|
git config --local user.name "solvespace-cd"
|
|
git config --local user.email "no-reply@solvespace.com"
|
|
export TRAVIS_TAG="edge"
|
|
git tag --force $TRAVIS_TAG
|
|
fi
|