mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Merge branch 'master' into dev
This commit is contained in:
commit
35b38db57f
@ -32,20 +32,6 @@ stages:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
displayName: "Check version of branch/tag"
|
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"
|
- stage: "Build"
|
||||||
jobs:
|
jobs:
|
||||||
@ -63,5 +49,9 @@ stages:
|
|||||||
versionSpec: "12.1"
|
versionSpec: "12.1"
|
||||||
- script: pip install twine wheel
|
- script: pip install twine wheel
|
||||||
displayName: "Install tools"
|
displayName: "Install tools"
|
||||||
- script: script/release
|
- script: |
|
||||||
|
export TWINE_USERNAME="$(twineUser)"
|
||||||
|
export TWINE_PASSWORD="$(twinePassword)"
|
||||||
|
|
||||||
|
script/release
|
||||||
displayName: "Build and release package"
|
displayName: "Build and release package"
|
||||||
|
@ -9,12 +9,8 @@ cd "$(dirname "$0")/.."
|
|||||||
# Install node modules
|
# Install node modules
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
# Verify everything is ok
|
|
||||||
tsc
|
|
||||||
|
|
||||||
script/build_frontend
|
script/build_frontend
|
||||||
|
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
python3 setup.py sdist
|
python3 setup.py sdist
|
||||||
python3 -m twine upload dist/*
|
python3 -m twine upload dist/*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user