frontend/script/release

17 lines
266 B
Bash
Executable File

#!/bin/sh
# Pushes a new version to PyPi.
# Stop on errors
set -e
cd "$(dirname "$0")/.."
# Install node modules
yarn install
script/build_frontend
rm -rf dist home_assistant_frontend.egg-info
python3 -m build
python3 -m twine upload dist/*.whl --skip-existing