Skip to content

Commit

Permalink
push to PYPI
Browse files Browse the repository at this point in the history
  • Loading branch information
PraaneshSelvaraj committed Mar 9, 2024
1 parent 1ac201f commit 9c819b4
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
57 changes: 57 additions & 0 deletions .gtihub/workflows/python-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

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
- name: Upload built distributions
uses: actions/upload-artifact@v2
with:
name: python-package-distributions
path: dist/

pypi-publish:
name: Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write

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
with:
user: __token__
repository_url: https://upload.pypi.org/legacy/
packages_dir: dist
verify_metadata: true
skip_existing: false
verbose: false
print_hash: false
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9c819b4

Please sign in to comment.