mirror of
https://github.com/3b1b/manim.git
synced 2025-08-06 14:52:05 +08:00
37 lines
791 B
YAML
37 lines
791 B
YAML
name: Upload Python Package
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python: ["py36", "py37", "py38", "py39", "py310"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.8'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install setuptools wheel twine build
|
|
|
|
- name: Build wheels
|
|
run: python setup.py bdist_wheel --python-tag ${{ matrix.python }}
|
|
|
|
- name: Upload wheels
|
|
env:
|
|
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
|
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
run: |
|
|
twine upload dist/* |