Publish Scroll Renderer to PyPI #2
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 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 }} |