Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Geneva committed Jul 18, 2021
1 parent 3a26c9f commit e1f1114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
name: Build and upload to PyPI

on:
push:
branches:
- main

release:
types:
- published
- created

jobs:
build_wheels:
Expand Down Expand Up @@ -55,24 +51,6 @@ jobs:
with:
path: dist/*.tar.gz

upload_testpypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest

# Uploads to testpypi occur every push to main
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# For a discussion on single-sourcing the version across setup.py and the
# project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.0.4', # Required
version='0.0.5', # Required

# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:
Expand Down

0 comments on commit e1f1114

Please sign in to comment.