Squashed commit of the following: #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
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: 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 |