Skip to content

Commit

Permalink
Github ci for publishing releases (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdele committed Nov 9, 2020
1 parent 209077d commit 9eb169e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/upload-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Python on TestPyPI and pypi

on:
push:
tags:
- '/^v\d+\.\d+\.\d+(-\S+)?$/'

jobs:
build-n-publish:
name: Build and publish on TestPyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Build a source tarball
run:
python setup.py sdist
- name: Publish distribution package to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.TESTPYPI_TOKEN_PASSWORD}}
repository_url: https://test.pypi.org/legacy/

0 comments on commit 9eb169e

Please sign in to comment.