From b08587f8fba6a2197a0a662512ec6efb5d406684 Mon Sep 17 00:00:00 2001
From: Clifton Barnes <cbarnes@smartfile.com>
Date: Tue, 16 Aug 2022 10:01:32 -0400
Subject: [PATCH] Add deploy action

---
 .github/workflows/deploy.yml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 .github/workflows/deploy.yml

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..05a0e9c
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,28 @@
+name: Deploy
+on:
+  push:
+    tags:
+      - '*'
+
+jobs:
+  deploy:
+    name: Deploy to PyPI
+    if: startsWith(github.ref, 'refs/tags')
+    runs-on: ubuntu-latest
+    steps:
+    - name: Setup python
+      uses: actions/setup-python@v4
+      with:
+        python-version: '3.8'
+
+    - name: Check out code
+      uses: actions/checkout@v3
+
+    - name: Build the library
+      env:
+        PYVER: ${{ matrix.version }}
+      run: python3 setup.py sdist
+
+    - uses: pypa/gh-action-pypi-publish@release/v1
+      with:
+        password: ${{ secrets.PYPI_API_TOKEN }}