Spaces:
Sleeping
Sleeping
| # This is a shell script to automate the deployment process to Hugging Face. | |
| # The 'echo' commands just print messages to the terminal so we can see the progress. | |
| echo "-------------------------------------" | |
| echo "Starting deployment to Hugging Face..." | |
| echo "-------------------------------------" | |
| # Step 1: Add all new and changed files to Git | |
| echo "=> Adding all files..." | |
| git add . | |
| # Step 2: Commit the changes with a message. | |
| # You can change the message in the quotes below each time if you want. | |
| echo "=> Committing files..." | |
| git commit -m "Update and deploy application" | |
| # Step 3: Push the code to the Hugging Face Space. | |
| # This assumes your remote is named 'space' and your local branch is 'master'. | |
| # It pushes your local 'master' branch to the 'main' branch on Hugging Face. | |
| echo "=> Pushing to Hugging Face..." | |
| git push --force space master:main | |
| echo "-------------------------------------" | |
| echo "✅ Deployment script finished." | |
| echo "Check your Hugging Face Space for the build status." | |
| echo "-------------------------------------" | |