diff options
Diffstat (limited to '.github/workflows/pypi.yml')
-rw-r--r-- | .github/workflows/pypi.yml | 19 |
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 }} |