From eb5ade3168e9c5a4a7457d21905578f2b6f3aa88 Mon Sep 17 00:00:00 2001 From: Dustin Ingram Date: Wed, 23 Dec 2020 12:24:41 -0600 Subject: [PATCH] Add release workflow --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..31d80732 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}