Skip to content

Commit ce8036e

Browse files
authored
snap: release non-stable-semver tags to beta (#3865)
* snap: release non-stable-semver tags to beta - fixes #3860 * snap: document --beta
1 parent b7ad2dc commit ce8036e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ Snap (Snapcraft/Linux)
101101
snap install dvc --classic
102102
103103
This corresponds to the latest tagged release.
104-
Add ``--edge`` for the latest ``master`` version.
104+
Add ``--beta`` for the latest tagged release candidate,
105+
or ``--edge`` for the latest ``master`` version.
105106

106107
Choco (Chocolatey/Windows)
107108
--------------------------

scripts/ci/before_install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
5252
fi
5353

5454
if [[ -n "$TRAVIS_TAG" ]]; then
55-
echo "export SNAP_CHANNEL=stable" >>env.sh
55+
if [[ $(echo "$TRAVIS_TAG" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$') ]]; then
56+
echo "export SNAP_CHANNEL=stable" >>env.sh
57+
else
58+
echo "export SNAP_CHANNEL=beta" >>env.sh
59+
fi
5660
else
5761
echo "export SNAP_CHANNEL=edge" >>env.sh
5862
fi

0 commit comments

Comments
 (0)