Metadata-Version: 2.1
Name: numops
Version: 0.0.4
Summary: UNKNOWN
Home-page: https://github.com/vivekkya/auto-release-to-pypi.git
Author: Vivek Yadav
Author-email: vivekkya@gmail.com
License: MIT
Download-URL: https://github.com/vivekkya/auto-release-to-pypi/archive/refs/tags/0.0.4.tar.gz
Keywords: Github Actions,PYPI,Github Release
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE.txt

# auto-release-to-pypi
This repo is a reference code to automatically push the package to pypi on creating a github release


Add a file in `.github\workflows\publish-to-pypi.yml` and copy paste below content.

```yaml
name: Upload Python Package

on:
  release:
    types: [created]

jobs:
  deploy:
    runs-on: ubuntu-20.04

    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install setuptools wheel twine
    - name: Build and publish
      env:
        TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
        TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
      run: |
        python setup.py sdist bdist_wheel
        twine upload dist/*
```

**Step 2:** Update PYPI Creds
Next add pypi credentials in github secrets.
- PYPI_USERNAME
- PYPI_PASSWORD

**Step 3:** Create a release tag
On creationg of release tag, github action will automatically start building wheel file and push them to pypi

