From e4cbdc29a210613ca4aafc145cb1a699edb227c1 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 17 Jul 2019 12:33:46 -0700 Subject: [PATCH 1/4] Update azure-pipelines-release.yml --- azure-pipelines-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml index 26dbc41ddd..c1ba3daca1 100644 --- a/azure-pipelines-release.yml +++ b/azure-pipelines-release.yml @@ -37,7 +37,7 @@ stages: jq curl release="$(Build.SourceBranchName)" - created_by="$(curl -s https://api.github.com/repos/home-assistant/home-assistant/releases/tags/${release} | jq --raw-output '.author.login')" + created_by="$(curl -s https://api.github.com/repos/home-assistant/home-assistant-polymer/releases/tags/${release} | jq --raw-output '.author.login')" if [[ "${created_by}" =~ ^(balloob)$ ]]; then exit 0 From f3c24dc0b3b2a7f7ace13baa443501c7836a1d3d Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 17 Jul 2019 12:41:07 -0700 Subject: [PATCH 2/4] Remove tsc check --- script/release | 4 ---- 1 file changed, 4 deletions(-) diff --git a/script/release b/script/release index 0d682c313f..05131f5df2 100755 --- a/script/release +++ b/script/release @@ -9,12 +9,8 @@ cd "$(dirname "$0")/.." # Install node modules yarn install -# Verify everything is ok -tsc - script/build_frontend rm -rf dist python3 setup.py sdist python3 -m twine upload dist/* - From f3d1a421f416ae3b302372cc129f49733043e1d1 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 17 Jul 2019 13:00:34 -0700 Subject: [PATCH 3/4] Update pipeline --- azure-pipelines-release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml index c1ba3daca1..d1ed36820c 100644 --- a/azure-pipelines-release.yml +++ b/azure-pipelines-release.yml @@ -63,5 +63,9 @@ stages: versionSpec: "12.1" - script: pip install twine wheel displayName: "Install tools" - - script: script/release + - script: | + export TWINE_USERNAME="$(twineUser)" + export TWINE_PASSWORD="$(twinePassword)" + + script/release displayName: "Build and release package" From 4f72eb5416e4201e6cf29ea8a973ecd3006b7cdb Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 17 Jul 2019 13:01:12 -0700 Subject: [PATCH 4/4] Remove check --- azure-pipelines-release.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml index d1ed36820c..d550943727 100644 --- a/azure-pipelines-release.yml +++ b/azure-pipelines-release.yml @@ -32,20 +32,6 @@ stages: exit 1 fi displayName: "Check version of branch/tag" - - script: | - sudo apt-get install -y --no-install-recommends \ - jq curl - - release="$(Build.SourceBranchName)" - created_by="$(curl -s https://api.github.com/repos/home-assistant/home-assistant-polymer/releases/tags/${release} | jq --raw-output '.author.login')" - - if [[ "${created_by}" =~ ^(balloob)$ ]]; then - exit 0 - fi - - echo "${created_by} is not allowed to create an release!" - exit 1 - displayName: "Check rights" - stage: "Build" jobs: