Skip to content

Commit

Permalink
Upload releases
Browse files Browse the repository at this point in the history
  • Loading branch information
misery committed May 21, 2021
1 parent ec15363 commit 06b5e39
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=15 --max-line-length=127 --statistics
- name: Installation
run: |
python setup.py sdist bdist_wheel
python setup.py sdist bdist_wheel --universal
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Upload Python Package

on:
push:
tags:
- '*'

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install wheel twine
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip list
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel --universal
twine upload dist/*

0 comments on commit 06b5e39

Please sign in to comment.