diff --git a/hack/jenkins/installers/check_install_github_release.sh b/hack/jenkins/installers/check_install_github_release.sh new file mode 100755 index 0000000000..b03398c818 --- /dev/null +++ b/hack/jenkins/installers/check_install_github_release.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Copyright 2021 The Kubernetes Authors All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eux -o pipefail + +echo "Installing latest version of github-release" +go install github.com/github-release/github-release@latest diff --git a/hack/jenkins/release_github_page.sh b/hack/jenkins/release_github_page.sh index 472682054f..ec8d85aac2 100755 --- a/hack/jenkins/release_github_page.sh +++ b/hack/jenkins/release_github_page.sh @@ -35,6 +35,11 @@ readonly GITHUB_ORGANIZATION="kubernetes" readonly GITHUB_REPO="minikube" readonly PROJECT_NAME="${GITHUB_REPO}" +# installing golang to install github-release +./hack/jenkins/installers/check_install_golang.sh "/usr/local" +# installing latest version of github-release +./hack/jenkins/installers/check_install_github_release.sh + RELEASE_FLAGS="" if ! [[ ${VERSION_BUILD} =~ ^[0-9]+$ ]]; then RELEASE_FLAGS="-p" # Pre-release