Skip to content

Publish Scroll Renderer to PyPI #2

Publish Scroll Renderer to PyPI

Publish Scroll Renderer to PyPI #2

Workflow file for this run

name: Publish Scroll Renderer to PyPI
on:
push:
tags:
- 'scroll-renderer-v*'
workflow_dispatch:
jobs:
publish:
name: Publish Scroll Renderer to PyPI
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
defaults:
run:
working-directory: ./scroll-renderer
steps:
- name: Check out the code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip setuptools wheel build
- name: Build the package
run: |
python -m build --sdist --wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: scroll-renderer/dist
password: ${{ secrets.PYPI_API_TOKEN }}