Skip to content

Commit c53bc8e

Browse files
committed
Publish source code first
1 parent c720be9 commit c53bc8e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ jobs:
88
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v6
11-
- uses: actions/setup-python@v5
11+
- uses: actions/setup-python@v6
1212
with:
13-
python-version: "3.13"
13+
python-version: "3.14"
1414
- name: Build source package
1515
run: |
16-
pip install -U --pre cython setuptools
16+
pip install -U cython setuptools
1717
python scripts/fetch-vendor.py --config-file scripts/ffmpeg-latest.json /tmp/vendor
1818
PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig python setup.py sdist
19-
- name: Upload source package
20-
uses: actions/upload-artifact@v4
19+
- name: Publish to PyPI
20+
if: github.event_name == 'release' && github.event.action == 'published'
21+
uses: pypa/gh-action-pypi-publish@release/v1
2122
with:
22-
name: dist-source
23-
path: dist/
23+
user: __token__
24+
password: ${{ secrets.PYPI_TOKEN }}
2425

2526
package-wheel:
2627
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)