Skip to content

0.1.1 - 2026.03.18

0.1.1 - 2026.03.18 #5

Workflow file for this run

name: Upload Python Package
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install frontend dependencies and build
run: |
cd frontend
npm ci
npm run build
- name: Move frontend build into Python package
run: |
rm -rf src/StreamJSME/static/
mkdir -p src/StreamJSME/static/
cp -r frontend/build/* src/StreamJSME/static/
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools build twine
python -m pip install .
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build
twine upload dist/*