diff --git a/.github/actions/pkg-publish/action.yml b/.github/actions/pkg-publish/action.yml index b9362784ae6c5..beef2d34f7db9 100644 --- a/.github/actions/pkg-publish/action.yml +++ b/.github/actions/pkg-publish/action.yml @@ -30,7 +30,7 @@ runs: if: inputs.pypi-test-token != '' with: user: __token__ - password: ${{ secrets.test_pypi_token_lai }} + password: ${{ inputs.pypi-test-token }} repository_url: https://test.pypi.org/legacy/ packages_dir: pypi/ verbose: true diff --git a/.github/workflows/legacy-checkpoints.yml b/.github/workflows/legacy-checkpoints.yml index 0531f2e72c957..b27ec472c8791 100644 --- a/.github/workflows/legacy-checkpoints.yml +++ b/.github/workflows/legacy-checkpoints.yml @@ -72,6 +72,7 @@ jobs: working-directory: ./ env: PACKAGE_NAME: pytorch + FREEZE_REQUIREMENTS: 1 run: | pip install . -f https://download.pytorch.org/whl/cpu/torch_stable.html pip list diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index 462521f08cf74..aaf05d791a026 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -11,9 +11,6 @@ defaults: run: shell: bash -env: - PUBLISH: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }} - jobs: init: runs-on: ubuntu-20.04 @@ -184,7 +181,7 @@ jobs: publish-packages: runs-on: ubuntu-20.04 - needs: waiting + needs: [build-packages, waiting] if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' steps: - uses: actions/checkout@v3 @@ -215,8 +212,8 @@ jobs: needs: [build-packages] uses: ./.github/workflows/legacy-checkpoints.yml with: - push_to_s3: ${{ env.PUBLISH }} - create_pr: ${{ env.PUBLISH }} + push_to_s3: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }} + create_pr: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }} secrets: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_KEY_ID: ${{ secrets.AWS_SECRET_KEY_ID }}