Skip to content

Commit

Permalink
Add Github Action for publishing to PyPI (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0l committed Nov 30, 2019
1 parent 86563c2 commit b51156b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/python-publish.yml
@@ -0,0 +1,26 @@
name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 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 upload dist/*
14 changes: 0 additions & 14 deletions .travis.yml
Expand Up @@ -13,21 +13,7 @@ before_install:
install:
- pip install -r requirements/requirements.txt
- pip install -r requirements/requirements_dev.txt
- pip install codecov
before_script:
- pytest --version
script:
- ./tests/run.py
after_success:
- codecov
deploy:
provider: pypi
user: xenol
password:
secure: TO/e7xuqCgfxN+6uMKLsL4xGjNiyag9YXdSIu0icDCcBygJr2ngTlJMrJ4CuHyENLbbz851TaaEEEoqSBYz3txlkgYqbgdxepwjcWccuKUIcXL0Jl0hwXHmSJ7cYcw5PcgIZPX02LpgNEUhMDBYIVzEXuh7sP+VyH0SRCekZPn4cbB/5hmMcY4pYQLD1OhMmTEBpjl3wM0gQ3UqOi3FcFzRUVnrlTGi5gjrcWC/W4bJSoU03T8UjPvCU+hjsZ5/0twxIaV/1Tn4MmrvJz9mwZguC/Ba57CnZsyJjfwZo1Akf7a8NW0tRBsdvXnhC7SLM+vRY6X9sb4H1zh0Iu7irj2izOVbq6ccYutsnXSy+o2nJCEa9HOybjMmhJyBt1sHfZWMukIr0HgFRL3v7CvvqqtgVtpk4W7LT2KPX9D34/GcHAk4olX9strTPawuI4DHH1ARk4ym6eKZ0LcIOP6UzxkhIhgbebklxCzyfhyvqR2TmFWszuphLiFwOazbqAmPDqU2RQ/b6LLGw/mF45QLCMb76GGf8RIbHnRZsuhGb8x5kas7BxZ2byEvMKMFDbqKn+mKaUD5VwYjsKXphfo2DeJ1SWPuaczER0+FhX0o6wuYnL6ysxEAsoR7vIqsz6EeFJg/oFL6B4Uhfza+hh3oSgsER0i2KRrEuq1gu5RC2Sb4=
distributions: sdist bdist_wheel
skip_existing: true
on:
tags: true
branch: master
python: 3.7

0 comments on commit b51156b

Please sign in to comment.