Skip to content

Commit cb884e9

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent bf54cbb commit cb884e9

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

azure-pipelines.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ jobs:
4949
poetry install
5050
poetry build
5151
poetry config pypi-token.pypi $(pypi_token)
52-
poetry publish
52+
cp ./dist $(Build.ArtifactStagingDirectory)/dist
53+
- task: PublishBuildArtifacts@1
54+
inputs:
55+
PathtoPublish: "$(Build.ArtifactStagingDirectory)/dist"
56+
ArtifactName: "dist"
57+
publishLocation: "Container"
5358
- job: build_glibc_2_28
5459
dependsOn: build_package
5560
container: python:3.9.17-buster
@@ -79,7 +84,6 @@ jobs:
7984
set -x
8085
export PATH=$PATH:/home/vsts_azpcontainer/.local/bin
8186
pip install pipx && pipx install poetry
82-
poetry version $(semVer)
8387
poetry self add "poetry-pyinstaller-plugin[plugin]"
8488
poetry install
8589
poetry build
@@ -98,12 +102,30 @@ jobs:
98102
artifact: croudtech-bootstrap-debian-bullseye
99103
- download: current
100104
artifact: croudtech-bootstrap
105+
- download: current
106+
artifact: dist
107+
- task: UsePythonVersion@0
108+
name: set_python_version
109+
displayName: Set Python Version
110+
inputs:
111+
versionSpec: '$(python_version)'
112+
addToPath: true
113+
architecture: x64
101114
- script: |
115+
set -x
116+
cp $(Pipeline.Workspace)/dist/dist $(Build.ArtifactStagingDirectory) ./dist
117+
export PATH=$PATH:/home/vsts_azpcontainer/.local/bin
118+
pip install pipx && pipx install poetry
119+
poetry version $(GitVersion.SemVer)
120+
poetry self add "poetry-pyinstaller-plugin[plugin]"
121+
poetry install
122+
poetry publish
123+
cp $(Pipeline.Workspace)/dist/dist $(Build.ArtifactStagingDirectory)
102124
cp $(Pipeline.Workspace)/croudtech-bootstrap/croudtech-bootstrap $(Build.ArtifactStagingDirectory)
103125
cp $(Pipeline.Workspace)/croudtech-bootstrap-debian-bullseye/croudtech-bootstrap-debian-bullseye $(Build.ArtifactStagingDirectory)
104126
- template: release/github-release.yaml@templates
105127
parameters:
106-
semVer: $(semVer)
128+
semVer: $(GitVersion.SemVer)
107129
github_access_token: $(github_access_token)
108130
github_org: CroudTech
109131
github_repo: croudtech-python-bootstrap-app

0 commit comments

Comments
 (0)