Skip to content

Commit

Permalink
Merge pull request #51 from mhrivnak/publish
Browse files Browse the repository at this point in the history
adds PyPI publish automation
  • Loading branch information
mhrivnak authored Jan 19, 2021
2 parents 6d530a0 + 565e538 commit 614a251
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish

on:
push:
tags:
- '*'

jobs:
release:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Build sdist
run: python setup.py sdist
- name: Publish
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 614a251

Please sign in to comment.