Skip to content

Commit c817b9b

Browse files
authored
[Release Only] Add Upload wheels to PyPI for release 3.4.x promotion (#7707)
I believe we are ready to go live with 3.4.0 release
1 parent 11ec635 commit c817b9b

File tree

1 file changed

+4
-32
lines changed

1 file changed

+4
-32
lines changed

.github/workflows/wheels.yml

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -89,36 +89,8 @@ jobs:
8989
name: cibw-wheels-manylinux_2_28_${{ matrix.config.arch }}-wheels-upload
9090
path: ./wheelhouse/*.whl
9191

92-
- name: Install Azure CLI
93-
if: ${{ steps.check-version.outputs.new_commit == 'true' }}
94-
run: |
95-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
96-
97-
- name: Azure login
98-
if: ${{ steps.check-version.outputs.new_commit == 'true' }}
99-
uses: azure/login@v2
100-
with:
101-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
102-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
103-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
104-
105-
- id: generate-token
106-
name: Generate token
107-
if: ${{ steps.check-version.outputs.new_commit == 'true' }}
108-
run: |
109-
AZ_TOKEN=$(az account get-access-token --query accessToken)
110-
echo "::add-mask::$AZ_TOKEN"
111-
echo "access_token=$AZ_TOKEN" >> "$GITHUB_OUTPUT"
112-
113-
- name: Publish wheels to Azure DevOps
114-
if: ${{ steps.check-version.outputs.new_commit == 'true' }}
115-
run: |
116-
python3 -m pip install twine
117-
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/*
118-
119-
- name: Azure Logout
120-
if: ${{ steps.check-version.outputs.new_commit == 'true' && (success() || failure()) }}
92+
- name: Upload wheels to PyPI
93+
if: ${{ matrix.config.arch == 'x86_64' }}
12194
run: |
122-
az logout
123-
az cache purge
124-
az account clear
95+
python3 -m pip install twine --upgrade --user
96+
python3 -m twine upload wheelhouse/* -u __token__ -p ${{ secrets.PYPY_API_TOKEN }}

0 commit comments

Comments
 (0)