Skip to content

Commit

Permalink
Merge pull request #37 from quarckster/deploy
Browse files Browse the repository at this point in the history
Added deploy workflow for GH actions, removed Travis config
  • Loading branch information
Dmitrii Misharov authored Jul 12, 2021
2 parents 75714c1 + c2330d5 commit a78771a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 21 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy

on:
push:
branches:
- master
tags:
- "*"

jobs:
deploy:
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install dependencies
run: python -m pip install --upgrade setuptools wheel twine
- name: Build and check
run: |
python setup.py sdist bdist_wheel
python -m twine check dist/*
- name: Deploy to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
- name: Create a release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package
name: Tests

on:
push:
Expand Down
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifier =
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Topic :: Utilities
keywords =
setup
Expand Down

0 comments on commit a78771a

Please sign in to comment.