-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
41 lines (31 loc) · 977 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
trigger:
tags:
include:
- '*'
pr: none
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
addToPath: true
architecture: 'x64'
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install tools'
- script: python -m pip install pipenv==2023.7.11
displayName: 'Install pipenv'
- script: pipenv requirements | tee requirements.txt
displayName: 'Create requirements.txt from Pipfile.lock'
- script: pip install -r requirements.txt
displayName: 'Install requirements'
- script: python setup.py bdist_wheel
displayName: 'Artifact creation'
- script: python -m pip install --upgrade twine
displayName: 'Install Twine'
- task: TwineAuthenticate@1
inputs:
pythonUploadServiceConnection: 'pypi_austrakka'
- script: |
python -m twine upload --skip-existing -r austrakka --config-file $(PYPIRC_PATH) dist/*.whl
displayName: 'Publish to PyPi through Twine'