diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml index 7c88e615fa5..510e16a351c 100644 --- a/azure-pipelines-release.yml +++ b/azure-pipelines-release.yml @@ -68,11 +68,11 @@ stages: - script: python setup.py sdist bdist_wheel displayName: 'Build package' - script: | - export TWINE_USERNAME="$(twineUser)" - export TWINE_PASSWORD="$(twinePassword)" - twine upload dist/* --skip-existing displayName: 'Upload pypi' + env: + TWINE_USERNAME: '$(twineUser)' + TWINE_PASSWORD: '$(twinePassword)' - job: 'ReleaseDocker' timeoutInMinutes: 240 pool: diff --git a/azure-pipelines-translation.yml b/azure-pipelines-translation.yml new file mode 100644 index 00000000000..ad536aa9068 --- /dev/null +++ b/azure-pipelines-translation.yml @@ -0,0 +1,27 @@ +# https://dev.azure.com/home-assistant + +trigger: + batch: true + branches: + include: + - dev +pr: none +variables: + - group: translation + + +jobs: + +- job: 'Upload' + pool: + vmImage: 'ubuntu-latest' + steps: + - task: UsePythonVersion@0 + displayName: 'Use Python 3.7' + inputs: + versionSpec: '3.7' + - script: | + ./script/translations_upload + displayName: 'Upload Translation' + env: + LOKALISE_TOKEN: $(lokaliseToken)