mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
28 lines
648 B
YAML
28 lines
648 B
YAML
name: Publish Release
|
|
|
|
on:
|
|
release:
|
|
types: [released]
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.8
|
|
|
|
- name: Install dependencies
|
|
run: python -m pip install --upgrade poetry
|
|
|
|
# TODO: Set PYPI_API_TOKEN to api token from pip in secrets
|
|
- name: Configure pypi credentials
|
|
env:
|
|
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
run: poetry config http-basic.pypi __token__ "$PYPI_API_TOKEN"
|
|
|
|
- name: Publish release to pypi
|
|
run: poetry publish --build
|