aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pypi.yml
blob: e8801182e5aa21f8a8017f324a20ab74eb5b16ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Publish version changes to PyPI
on:
  push:
    paths:
      - "yt_music/__version__.py"
      - "pyproject.toml"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          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 }}