Skip to content

Commit

Permalink
clean workflow for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
girardinsamuel committed Sep 27, 2020
1 parent 1fa1f4e commit 0d20c3a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ jobs:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
make init
- name: Publish only packages passing test
run: |
make test
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
make publish

0 comments on commit 0d20c3a

Please sign in to comment.