aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pypi.yml
diff options
context:
space:
mode:
authorDemonKingSwarn <rockingswarn@gmail.com>2024-02-01 01:27:59 +0530
committerDemonKingSwarn <rockingswarn@gmail.com>2024-02-01 01:27:59 +0530
commitec911e39b920dddf42be1c6622c0a22b711de238 (patch)
treef42b80181163592ec87003738e76e6b0098419d8 /.github/workflows/pypi.yml
parentd52dbe5006b12ddfef8317ff472cc8120799687c (diff)
downloadyt-music-ec911e39b920dddf42be1c6622c0a22b711de238.zip
yt-music-ec911e39b920dddf42be1c6622c0a22b711de238.tar.gz
chore: migrated to pyproject
Diffstat (limited to '.github/workflows/pypi.yml')
-rw-r--r--.github/workflows/pypi.yml19
1 files changed, 6 insertions, 13 deletions
diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml
index ffeb5c2..e880118 100644
--- a/.github/workflows/pypi.yml
+++ b/.github/workflows/pypi.yml
@@ -3,25 +3,18 @@ on:
push:
paths:
- "yt_music/__version__.py"
+ - "pyproject.toml"
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
+ - name: Checkout
+ uses: actions/checkout@v3
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
+ fetch-depth: 0
+ - run: python3 -m pip install --upgrade build && python3 -m build
+ - name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}