From 3eb7cafd1fb88db1d5bfaa205c520a554fea6910 Mon Sep 17 00:00:00 2001 From: kb35976 Date: Thu, 6 May 2021 09:54:23 -0500 Subject: [PATCH] added before_install before deploy --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0cfbc6d..27402d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,12 @@ jobs: - stage: deploy if: tag =~ ^v\d+\.\d+\.\d+ + before_install: + - wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb + - sudo dpkg -i packages-microsoft-prod.deb + - sudo apt-get update + - sudo apt-get install -y dotnet-sdk-3.1 + - sudo apt-get install -y dotnet-sdk-2.1 mono: none script: - VERSION=$(echo $TRAVIS_TAG | grep -i -P -o '(?<=^v)\d+\.\d+\.\d+(?:.+)?$'); VERSION_NUMBER=$(echo $VERSION | grep -i -P -o '^\d+\.\d+\.\d+')