Skip to content

Commit

Permalink
CI on tag: Fix trigger
Browse files Browse the repository at this point in the history
__original_commit__ = fairinternal/xformers@a49cbadbb758b5470e6057a76db10b55cbf2ca0a
  • Loading branch information
danthe3rd authored and xFormers Bot committed Jan 14, 2023
1 parent c6fad21 commit 5db2259
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ workflows:
only:
- main
tags:
only: /^v*/
only: /^v.*/
- build_conda:
name: conda_build_cu116_1.12.1
dockerimage: pytorch/conda-builder:cuda116
Expand All @@ -523,7 +523,7 @@ workflows:
only:
- main
tags:
only: /^v*/
only: /^v.*/
- build_conda:
name: conda_build_cu116_1.13.1
dockerimage: pytorch/conda-builder:cuda116
Expand All @@ -534,7 +534,7 @@ workflows:
only:
- main
tags:
only: /^v*/
only: /^v.*/
- build_conda:
name: conda_build_cu117_1.13.1
dockerimage: pytorch/conda-builder:cuda117
Expand All @@ -545,7 +545,7 @@ workflows:
only:
- main
tags:
only: /^v*/
only: /^v.*/
- binary_linux_wheel:
python_version: "3.7"
name: binary_linux_wheel_py37_cu102
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
DISTUTILS_USE_SDK: 1 # otherwise distutils will complain on windows about multiple versions of msvc
XFORMERS_BUILD_TYPE: "Release"
TWINE_USERNAME: __token__
XFORMERS_PACKAGE_FROM: "wheel"
XFORMERS_PACKAGE_FROM: "wheel-${{ github.ref_name }}"

jobs:
build_wheels:
Expand Down Expand Up @@ -118,13 +118,13 @@ jobs:
path: dist/*.whl

- name: Upload wheel to PyPi
if: ${{ github.ref_name == 'main' && matrix.config.publish }}
if: ${{ matrix.config.publish }}
run: $PY -m twine upload dist/*.whl
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

- name: Upload source distribution to PyPi
if: ${{ github.ref_name == 'main' && matrix.config.publish && matrix.sdist }}
if: ${{ matrix.config.publish && matrix.sdist }}
run: |
rm -rf dist/
# unpin pytorch version
Expand Down

0 comments on commit 5db2259

Please sign in to comment.