--- a
+++ b/.github/workflows/publish-to-pypi.yml
@@ -0,0 +1,37 @@
+name: pypi package
+
+on: workflow_dispatch
+
+jobs:
+  build-n-publish:
+    name: Build and publish Python 🐍 distributions 📦 to PyPI
+    runs-on: ubuntu-20.04
+    
+    steps:
+    - uses: actions/checkout@master
+    - name: Set up Python 3.8
+      uses: actions/setup-python@v1
+      with:
+        python-version: 3.8
+    - name: Install libvips
+      run: sudo apt-get install -y libvips
+    - name: Install pypa/build
+      run: >-
+        python -m
+        pip install -r requirements.txt
+        --user
+    - name: Initialize submodule
+      run: >-
+        git submodule init
+    - name: Update submodule
+      run: >-
+        git submodule update --remote --recursive
+    - name: Build a binary wheel
+      run: >-
+        python
+        setup.py
+        bdist_wheel
+    - name: Publish distribution 📦 to PyPI
+      uses: pypa/gh-action-pypi-publish@master
+      with:
+        password: ${{ secrets.PYPI_API_TOKEN }}