@@ -84,36 +84,12 @@ jobs:
8484 export CIBW_FREE_THREADED_SUPPORT=1
8585 python3 -m cibuildwheel python --output-dir wheelhouse
8686
87- - name : Install Azure CLI
88- if : ${{ steps.check-version.outputs.new_commit == 'true' }}
89- run : |
90- curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
91-
92- - name : Azure login
93- if : ${{ steps.check-version.outputs.new_commit == 'true' }}
94- uses : azure/login@v2
87+ - uses : actions/upload-artifact@v4
9588 with :
96- client-id : ${{ secrets.AZURE_CLIENT_ID }}
97- tenant-id : ${{ secrets.AZURE_TENANT_ID }}
98- subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
99-
100- - id : generate-token
101- name : Generate token
102- if : ${{ steps.check-version.outputs.new_commit == 'true' }}
103- run : |
104- AZ_TOKEN=$(az account get-access-token --query accessToken)
105- echo "::add-mask::$AZ_TOKEN"
106- echo "access_token=$AZ_TOKEN" >> "$GITHUB_OUTPUT"
107-
108- - name : Publish wheels to Azure DevOps
109- if : ${{ steps.check-version.outputs.new_commit == 'true' }}
110- run : |
111- python3 -m pip install twine
112- python3 -m twine upload -r Triton-Nightly -u TritonArtifactsSP -p ${{ steps.generate-token.outputs.access_token }} --config-file utils/nightly.pypirc --non-interactive --verbose wheelhouse/*
89+ name : cibw-wheels-manylinux_2_28_x86_64-${{ matrix.config.arch }}-wheels-upload
90+ path : ./wheelhouse/*.whl
11391
114- - name : Azure Logout
115- if : ${{ steps.check-version.outputs.new_commit == 'true' && (success() || failure()) }}
92+ - name : Upload wheels to PyPI
93+ if : ${{ matrix.config.arch == 'x86_64' }}
11694 run : |
117- az logout
118- az cache purge
119- az account clear
95+ python3 -m twine upload wheelhouse/* -u __token__ -p ${{ secrets.PYPY_API_TOKEN }}
0 commit comments