Skip to content

Commit

Permalink
Merge pull request #6 from arvkevi/update_pythonpublish
Browse files Browse the repository at this point in the history
* update pythonpublish github workflow
* add 3.8 to CI
  • Loading branch information
arvkevi authored Oct 9, 2020
2 parents 7338c4a + 6a6900e commit b291e82
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
43 changes: 21 additions & 22 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
name: Upload Python Package

on:
release:
types: [created]

on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-18.04
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: install wheel
run: >-
pip install wheel
- name: build
run: >-
python
setup.py
sdist
bdist_wheel
- name: Publish distribution 📦 to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
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/*
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
install:
- pip install -r requirements.txt
- pip install -e .
Expand Down

0 comments on commit b291e82

Please sign in to comment.