Skip to content

Commit 39cb156

Browse files
authored
fix(actions): release to pypi only wheel (#24)
1 parent 50cb6d6 commit 39cb156

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Build
4848
run: |
4949
echo "${{ needs.prepare.outputs.version }}" > VERSION
50-
cd $ROOT_DIR && python setup.py sdist bdist_wheel
50+
cd $ROOT_DIR && python setup.py bdist_wheel
5151
5252
- name: Upload release assets
5353
uses: AButler/[email protected]
@@ -59,9 +59,8 @@ jobs:
5959
- name: Upload package to pypi
6060
uses: pypa/[email protected]
6161
with:
62-
user: ${{ secrets.PRIVATE_PYPI_USERNAME }}
63-
password: ${{ secrets.PRIVATE_PYPI_PASSWORD }}
64-
repository_url: ${{ secrets.PRIVATE_PYPI_URL }}
62+
user: __token__
63+
password: ${{ secrets.PYPI_API_TOKEN }}
6564
packages_dir: '${{ env.ROOT_DIR }}/dist/'
6665

6766

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ clean-pyc: ### Removes python compiled bytecode files
3636

3737

3838
define BUILD
39-
cd src/$1/ && rm -rf dist/ && $(PYTHON) setup.py sdist bdist_wheel
39+
cd src/$1/ && rm -rf dist/ && $(PYTHON) setup.py bdist_wheel
4040
endef
4141

4242
define INSTALL

0 commit comments

Comments
 (0)