Skip to content

Commit

Permalink
Tune release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Janneke Janssen committed Dec 3, 2020
1 parent b78b65b commit cc6355e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Publish to PyPI

on:
release:
types: [published]
Expand All @@ -17,14 +18,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine
pip install setuptools wheel twine
- name: Build the package
- name: Build and publish
run: |
python setup.py sdist bdist_wheel
- name: Upload to PyPI
run: twine upload dist/*
twine upload dist/*
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}

0 comments on commit cc6355e

Please sign in to comment.