diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..6d58308 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,37 @@ +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + release-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.8" + + - name: Install dependencies + run: | + pip3 install -r requirements.txt + pip3 install pytest + pip3 install twine + + - name: Build and Test + run: | + python3 setup.py build + pytest + + - name: Publish to PyPI + run: | + python3 setup.py sdist bdist_wheel &> package_setup.log + curl --connect-timeout 10 -kI https://test.pypi.org + twine upload -u ${{ secrets.USER }} -p ${{ secrets.PASS }} 'dist/*' + diff --git a/client_encryption/version.py b/client_encryption/version.py index 66eee77..62c1e7c 100644 --- a/client_encryption/version.py +++ b/client_encryption/version.py @@ -1,3 +1,3 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -__version__ = "1.23.2" +__version__ = "1.23.3"