Skip to content

Commit

Permalink
CI: fix pypi flow (#15944)
Browse files Browse the repository at this point in the history
* CI: fixing pypi syntax (#15943)
* connect
* input
  • Loading branch information
Borda authored Dec 7, 2022
1 parent de93167 commit 06163e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/pkg-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/legacy-checkpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 06163e6

Please sign in to comment.