Skip to content

Commit

Permalink
add pypi publishing action
Browse files Browse the repository at this point in the history
  • Loading branch information
Inveracity committed Jan 19, 2021
1 parent 493c692 commit ea69db0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release to PyPI

on:
release:
types: [published]
tags-ignore:
- '**dev**'
- '**rc**'


jobs:
build:
name: Build dist & publish
runs-on: ubuntu-20.04

steps:
- name: Checkout the repo and the submodules.
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.9'

- name: Install build dependencies & build
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.3.1
with:
user: __token__
password: ${{ secrets.PYPI }}

0 comments on commit ea69db0

Please sign in to comment.