Skip to content

Commit 3ac1a57

Browse files
authored
Separate build and publish stages (#40)
* Separate build and publish stages * Fix typo
1 parent 346736d commit 3ac1a57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ jobs:
6767
run: |
6868
python -m pip install --upgrade pip
6969
pip install -U setuptools setuptools_scm wheel twine build
70-
- name: Build and publish
70+
- name: Build package
71+
run: |
72+
python -m build .
73+
- name: Publish package
7174
if: contains(github.ref, 'tags')
7275
env:
7376
TWINE_USERNAME: __token__
7477
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
7578
run: |
7679
git tag
77-
python -m build .
7880
twine upload dist/*

0 commit comments

Comments
 (0)