Skip to content

Commit cc91389

Browse files
committed
Try again to upload directly to pypi
1 parent bd7a34a commit cc91389

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
name: Build
1+
name: Build Wheels
22

3-
on: [push, pull_request]
3+
# Only run on new tags starting with `v`
4+
on:
5+
push:
6+
tags:
7+
- 'v*'
48

59
jobs:
610
build_wheels:
@@ -40,17 +44,17 @@ jobs:
4044
4145
- name: Build wheel
4246
run: |
43-
python -m cibuildwheel --output-dir dist
47+
python -m cibuildwheel --output-dir wheelhouse
4448
4549
- uses: actions/upload-artifact@v1
4650
with:
4751
name: wheels
48-
path: ./dist
52+
path: ./wheelhouse
4953

50-
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
51-
- name: Publish distribution 📦 to PyPI
52-
if: startsWith(github.event.ref, 'refs/tags')
53-
uses: pypa/gh-action-pypi-publish@master
54-
with:
55-
user: __token__
56-
password: ${{ secrets.pypi_password }}
54+
- name: Publish wheels to PyPI
55+
env:
56+
TWINE_USERNAME: __token__
57+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
58+
run: |
59+
python -m pip install twine
60+
twine upload wheelhouse/*.whl

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [0.1.2] - 2020-06-01
4+
5+
- Try again to publish to PyPI directly
6+
7+
## [0.1.1] - 2020-06-01
8+
9+
- Try building wheels on CI with `cibuildwheel`
10+
311
## [0.1.0] - 2020-05-30
412

513
- Initial release

0 commit comments

Comments
 (0)