From ec911e39b920dddf42be1c6622c0a22b711de238 Mon Sep 17 00:00:00 2001 From: DemonKingSwarn Date: Thu, 1 Feb 2024 01:27:59 +0530 Subject: chore: migrated to pyproject --- .github/workflows/pypi.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to '.github/workflows/pypi.yml') 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 }} -- cgit v1.1