Skip to content

Commit 1471499

Browse files
committed
env variable pypi token 6
1 parent 5645249 commit 1471499

File tree

1 file changed

+13
-26
lines changed

1 file changed

+13
-26
lines changed

.github/workflows/release_build.yml

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,19 @@ on:
1212

1313
jobs:
1414
build_release:
15+
runs-on: ${{ matrix.os }}
1516
strategy:
1617
matrix:
17-
include:
18-
- os: linux.g5.12xlarge.nvidia.gpu
19-
python-version: 3.9
20-
python-tag: "py39"
21-
cuda-tag: "cu124"
22-
- os: linux.g5.12xlarge.nvidia.gpu
23-
python-version: '3.10'
24-
python-tag: "py310"
25-
cuda-tag: "cu124"
26-
- os: linux.g5.12xlarge.nvidia.gpu
27-
python-version: '3.11'
28-
python-tag: "py311"
29-
cuda-tag: "cu124"
30-
- os: linux.g5.12xlarge.nvidia.gpu
31-
python-version: '3.12'
32-
python-tag: "py312"
33-
cuda-tag: "cu124"
34-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
35-
with:
36-
runner: ${{ matrix.os }}
37-
timeout: 30
38-
script: |
18+
os: [linux.4xlarge.nvidia.gpu]
19+
python-version: [3.9, "3.10", "3.11", "3.12"]
20+
cuda-tag: ["cu124"]
21+
steps:
22+
- name: Push to PyPI
23+
env:
24+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
25+
OFFICIAL_RELEASE: 1
26+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
27+
run: |
3928
ldd --version
4029
conda create -y --name build_binary python=${{ matrix.python-version }}
4130
conda info
@@ -63,9 +52,7 @@ jobs:
6352
conda run -n build_binary \
6453
python -m twine upload \
6554
--username __token__ \
66-
--password ${{ secrets.PYPI_TOKEN }} \
55+
--password "$PYPI_TOKEN" \
6756
--skip-existing \
6857
dist/torchrec-*.whl
69-
env:
70-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
71-
58+

0 commit comments

Comments
 (0)