Skip to content

Commit 5624852

Browse files
committed
Version 1.6.14
Backported `session=` keyword usage to specify session used for API Calls from the async branch (#57) Fixed M3U(8) playlist saved by `--save-m3u` failing because of the omitted TrackDownloadTask Updated Github Actions
1 parent 196766c commit 5624852

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/build-and-publish.yml

+14-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ on:
77
push:
88
branches:
99
- master
10-
10+
11+
workflow_dispatch:
12+
1113
jobs:
1214
pypi:
1315
if: "contains(github.event.head_commit.message, 'Version')"
@@ -22,16 +24,17 @@ jobs:
2224
- name: Install dependencies
2325
run: |
2426
python -m pip install --upgrade pip
25-
pip install setuptools wheel twine
26-
python setup.py install
27-
- name: Build wheel and publish
28-
env:
29-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
30-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
31-
run: |
32-
python setup.py sdist bdist_wheel
33-
twine upload dist/*.whl dist/*.gz
34-
27+
pip install build
28+
pip install requests
29+
pip install setuptools
30+
pip install wheel
31+
- name: Build package
32+
run: python -m build --no-isolation
33+
- name: Publish package
34+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
35+
with:
36+
user: __token__
37+
password: ${{ secrets.PYPI_API_TOKEN }}
3538

3639
build_windows:
3740
runs-on: windows-latest

0 commit comments

Comments
 (0)