Skip to content

Update

Update #4

Workflow file for this run

name: Publish Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: ~/.cache
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install project
run: poetry install --no-interaction
- name: Typecheck with mypy
run: |
poetry run mypy
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
with:
python_version: "3.11"
pypi_token: ${{ secrets.PYPI_TOKEN }}
plugins: "poetry-dynamic-versioning[plugin]"
build_format: "wheel"
allow_poetry_pre_release: "yes"
ignore_dev_requirements: "yes"
#- name: Upload Release Asset
# id: upload-release
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: dist/manim-${{ steps.create_release.outputs.tag_name }}.tar.gz
# asset_name: manim-${{ steps.create_release.outputs.tag_name }}.tar.gz
# asset_content_type: application/gzip