1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-30 00:00:15 +01:00
libhermit/usr/rdma-core/buildlib/github-release
2017-10-06 15:13:04 +02:00

10 lines
336 B
Bash
Executable file

#!/bin/bash
set -e
if [[ $TRAVIS_TAG == v* ]] && [ "$TRAVIS_OS_NAME" = "linux" ]; then
# Let's create release for vX tags only.
# Strip the v from the TRAVIS_TAG for our prefix and output items
REL_TAG=`echo $TRAVIS_TAG | sed -e 's/^v//'`
git archive --prefix rdma-core-$REL_TAG/ --output rdma-core-$REL_TAG.tar.gz $TRAVIS_TAG
fi