Skip to content

Commit 49d0ffd

Browse files
authored
New env variable PYPI_ROUTINE to distinguish between PyPI upload wheel and normal wheel for Github actions
1 parent 1721a8b commit 49d0ffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pypi_build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ jobs:
6060
- name: Install depen
6161
run: python3 -m pip install setuptools_scm
6262
- name: Build a source tarball
63-
run: python -m build --sdist
63+
run: PYPI_ROUTINE=TRUE python -m build --sdist
6464
- name: Build a source tarball
65-
run: python -m build --wheel
65+
run: PYPI_ROUTINE=TRUE python -m build --wheel
6666
- name: Find the wheel created during pip install
6767
run:
6868
python3 -m pip cache dir

0 commit comments

Comments
 (0)