Skip to content

Commit c3c476f

Browse files
authored
[Release Only] Release 3.5.x triton to pypi
1 parent 7416ffc commit c3c476f

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
@@ -98,36 +98,8 @@ jobs:
9898
name: cibw-wheels-manylinux_2_28_${{ matrix.config.arch }}-wheels-upload
9999
path: ./wheelhouse/*.whl
100100

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

0 commit comments

Comments
 (0)