forked from graphlit/graphlit-client-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
30 lines (24 loc) · 778 Bytes
/
azure-pipelines.yml
File metadata and controls
30 lines (24 loc) · 778 Bytes
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
trigger:
branches:
include:
- main
name: $(Date:yyyyMMdd)$(Rev:rrr)
pool:
vmImage: "ubuntu-latest"
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.x"
addToPath: true
- script: |
echo "##vso[task.setvariable variable=PACKAGE_VERSION]1.0.$(Build.BuildNumber)"
displayName: "Set package version"
- script: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
displayName: "Install dependencies and build"
- script: |
twine upload dist/* -u __token__ -p $(PYPI_TOKEN) --skip-existing
displayName: "Upload to PyPI"
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))