diff options
author | DemonKingSwarn <rockingswarn@gmail.com> | 2024-02-01 01:22:03 +0530 |
---|---|---|
committer | DemonKingSwarn <rockingswarn@gmail.com> | 2024-02-01 01:22:03 +0530 |
commit | da10d9c42ac52eed54b4a127bccf26ae87fcdd0a (patch) | |
tree | cb3173b9f47aee316114b23c42e8b5542900c288 /.github/workflows | |
download | yt-music-da10d9c42ac52eed54b4a127bccf26ae87fcdd0a.zip yt-music-da10d9c42ac52eed54b4a127bccf26ae87fcdd0a.tar.gz |
INTRODUCING yt-music
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/pypi.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..ffeb5c2 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,27 @@ +name: Publish version changes to PyPI +on: + push: + paths: + - "yt_music/__version__.py" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checking out repository content + uses: actions/checkout@v2 + + - name: Setting up Python 3.11 + uses: actions/setup-python@v2 + with: + python-version: '3.11' + + - name: Build the file + run: | + pip install setuptools wheel + python setup.py sdist + + - name: Publish a Python distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} |