Add token support

This commit is contained in:
Pascal Vizeli 2019-09-03 09:35:03 +02:00
parent c6d839f8ae
commit df9703d814
2 changed files with 30 additions and 3 deletions

View File

@ -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:

View File

@ -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)