# This script used to deploy the graio app # last update 2024-Feb-1 echo '1. Update version number' read -r -p "Have you checked all the testing items?(y/n)" response echo # (optional) move to a new line # response=${response,,} # tolower if [ $response = "y" ]; then echo 'Deploying ...' # Store .env content to local variable env_value=$(cat .env) echo "$env_value" # Remove .env file, because it will be publish to gradio rm .env || echo 'no .env found' gradio deploy fi # Save back .env file echo "$env_value" > './.env'