mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 21:40:20 +00:00
As there will be releases 1.7.1, 1.7.2 etc., storing zsync in release asset doesn't make sense (further version won't update previous update information). Thus store this in continuous release assets - update channel "release" was introduced aside to existing "continuous".
24 lines
461 B
Bash
Executable File
24 lines
461 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if expr $GITHUB_REF : 'refs/heads/release/'; then
|
|
VERSION=${GITHUB_REF#refs/heads/release/}
|
|
TAG=v$VERSION
|
|
CHANNEL=release
|
|
elif [ $GITHUB_REF = 'refs/heads/ndi-build' ]; then
|
|
VERSION=ndi
|
|
TAG=$VERSION
|
|
else
|
|
VERSION=continuous
|
|
TAG=$VERSION
|
|
fi
|
|
|
|
if [ -z ${CHANNEL-""} ]; then
|
|
CHANNEL=$VERSION
|
|
fi
|
|
|
|
export CHANNEL TAG VERSION
|
|
|
|
echo "CHANNEL=$CHANNEL" >> $GITHUB_ENV
|
|
echo "TAG=$TAG" >> $GITHUB_ENV
|
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|