Skip to content

Commit

Permalink
Add release workflow (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
di authored Dec 23, 2020
1 parent 12896cf commit 04423e7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release to PyPI

on:
release:
types: [published]

jobs:
build-and-pubish:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name }}
- name: Install Python
uses: actions/setup-python@v2
- name: Install build dependencies
run: python -m pip install -U setuptools build wheel
- name: Build distributions
run: python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 04423e7

Please sign in to comment.