Skip to content

Commit

Permalink
Update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anxuae committed May 28, 2020
1 parent 74631be commit 87ee934
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package
name: Publish package on PyPI

on:
release:
types: [created, edited]
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
Expand All @@ -21,12 +17,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install cython setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine check dist/*
twine upload --skip-existing dist/*
python setup.py bdist_wheel
twine check dist/* && twine upload --skip-existing dist/*

0 comments on commit 87ee934

Please sign in to comment.