Skip to content

Commit 3a42e8f

Browse files
committed
Publish source code first
1 parent c720be9 commit 3a42e8f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 8 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 }}
@@ -76,7 +77,7 @@ jobs:
7677

7778
publish:
7879
runs-on: ubuntu-latest
79-
needs: [package-source, package-wheel]
80+
needs: [package-wheel]
8081
steps:
8182
- uses: actions/checkout@v6
8283
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)