solvespace/.travis/tag-edge.sh
Maximilian Federle 1b2d47cd86 Travis: deploy tagged commits & edge tagging fixes
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.
2020-11-18 11:13:52 +01:00

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