From 1471499e9ebdae679b0b5b2a10c8212913654894 Mon Sep 17 00:00:00 2001 From: Paul Zhang Date: Mon, 21 Oct 2024 20:38:24 +0000 Subject: [PATCH] env variable pypi token 6 --- .github/workflows/release_build.yml | 39 ++++++++++------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 559698727..16bd73a7c 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -12,30 +12,19 @@ on: jobs: build_release: + runs-on: ${{ matrix.os }} strategy: matrix: - include: - - os: linux.g5.12xlarge.nvidia.gpu - python-version: 3.9 - python-tag: "py39" - cuda-tag: "cu124" - - os: linux.g5.12xlarge.nvidia.gpu - python-version: '3.10' - python-tag: "py310" - cuda-tag: "cu124" - - os: linux.g5.12xlarge.nvidia.gpu - python-version: '3.11' - python-tag: "py311" - cuda-tag: "cu124" - - os: linux.g5.12xlarge.nvidia.gpu - python-version: '3.12' - python-tag: "py312" - cuda-tag: "cu124" - uses: pytorch/test-infra/.github/workflows/linux_job.yml@main - with: - runner: ${{ matrix.os }} - timeout: 30 - script: | + os: [linux.4xlarge.nvidia.gpu] + python-version: [3.9, "3.10", "3.11", "3.12"] + cuda-tag: ["cu124"] + steps: + - name: Push to PyPI + env: + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + OFFICIAL_RELEASE: 1 + uses: pytorch/test-infra/.github/workflows/linux_job.yml@main + run: | ldd --version conda create -y --name build_binary python=${{ matrix.python-version }} conda info @@ -63,9 +52,7 @@ jobs: conda run -n build_binary \ python -m twine upload \ --username __token__ \ - --password ${{ secrets.PYPI_TOKEN }} \ + --password "$PYPI_TOKEN" \ --skip-existing \ dist/torchrec-*.whl - env: - PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} - + \ No newline at end of file