Skip to content

Commit

Permalink
Add a release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-k authored and markpeek committed Mar 21, 2021
1 parent 62c1d57 commit fbfb0eb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Release

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
environment: deploy

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade "twine>=3.4.1" "wheel>=0.36.2"
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Check basics before uploading the package
run: |
python -m tox -e package
- name: Publish package on PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload dist/*

0 comments on commit fbfb0eb

Please sign in to comment.