diff --git a/.github/workflows/python-app.yaml b/.github/workflows/python-app.yaml new file mode 100644 index 0000000..bf42b87 --- /dev/null +++ b/.github/workflows/python-app.yaml @@ -0,0 +1,42 @@ +name: Publish Python 🐍 distribution 📦 to PyPI + +on: + push: + tags: + - '*' + +jobs: + build: + name: Build distribution 📦 + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build distribution + run: python -m build + + pypi-publish: + name: Publish Python 🐍 distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + needs: build + + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Download built distributions + uses: actions/download-artifact@v2 + with: + name: python-package-distributions + path: dist/ + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/setup.py b/setup.py index 649cc2d..bd01cfb 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='speech_engine', - version='0.0.2', + version='0.0.3', author='Praanesh', author_email='praaneshselvaraj2003@gmail.com', description='Python package for synthesizing text into speech',