blob: ffeb5c28c71c2079652003d2e11fb0e63bdcb92a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 }}
|