Skip to content

Commit

Permalink
Merge pull request #28 from erichiggins/develop
Browse files Browse the repository at this point in the history
Switch to github action instead of travis for uploading to pypi
  • Loading branch information
erichiggins authored Jan 27, 2020
2 parents b12587c + b1a3d4c commit eea35a7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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: '2.7'
- 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/*
11 changes: 0 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,3 @@ install:
- pip install -r requirements.txt
script:
- python setup.py test
before_deploy:
- pip install twine
deploy:
provider: pypi
edge: true
user: "__token__"
password:
- secure: "oX4Hg8EDIo4RDoqHwYSBi9lVHRcrQl1sdySdR+JnSIpRO0D0ckTDwoz6nuejRe4/2YEGyIYSkPsUEnMMQmiDS5jkgqr1JNV3s8I2JjjCryof5si2Jf5Mk7gbqprEgJqgnKK551HovP35e/fvwpb1wiEddjDPSYN8UF8kbjTPGOE="
- secure: "cCgbdtJAi0GyzVd2DRo8irQvohE8zIM3WbwcPx1F/+OcWNuvb0xDOOVIcnVD2r5KqcUqTwyNjWdBBLhkMNiwKfwVVAVPwj9cEi6YIjlEiD49kIMswcgzZM5E6dxVQ1IgDtdbI8YpAbopl4iTLz7qO9FHCyHJ049d5K91/8212Eo="
on:
tags: true

0 comments on commit eea35a7

Please sign in to comment.