File size: 1,064 Bytes
4ded330
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

# 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 "-------------------------------------"