Archisman Karmakar
commited on
Update deploy_to_HF_space.yml
Browse files
.github/workflows/deploy_to_HF_space.yml
CHANGED
@@ -59,13 +59,27 @@ jobs:
|
|
59 |
# Use rsync to copy all files except the hf-space directory to avoid copying the clone into itself
|
60 |
rsync -av --exclude='hf-space' ./ hf-space/
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
- name: Commit and push to Hugging Face
|
63 |
run: |
|
64 |
cd hf-space
|
65 |
git init
|
|
|
|
|
66 |
git remote add origin https://huggingface.co/spaces/tachygraphy-microtrext-norm-org/Tachygraphy-Microtext-Analysis-and-Normalization-ArchismanCoder
|
67 |
git checkout -b main
|
68 |
git add .
|
69 |
git commit -m "Update deployment via GitHub Actions"
|
70 |
git push -f origin main
|
71 |
echo "Deployment to Hugging Face Spaces completed!"
|
|
|
|
59 |
# Use rsync to copy all files except the hf-space directory to avoid copying the clone into itself
|
60 |
rsync -av --exclude='hf-space' ./ hf-space/
|
61 |
|
62 |
+
# - name: Commit and push to Hugging Face
|
63 |
+
# run: |
|
64 |
+
# cd hf-space
|
65 |
+
# git init
|
66 |
+
# git remote add origin https://huggingface.co/spaces/tachygraphy-microtrext-norm-org/Tachygraphy-Microtext-Analysis-and-Normalization-ArchismanCoder
|
67 |
+
# git checkout -b main
|
68 |
+
# git add .
|
69 |
+
# git commit -m "Update deployment via GitHub Actions"
|
70 |
+
# git push -f origin main
|
71 |
+
# echo "Deployment to Hugging Face Spaces completed!"
|
72 |
+
|
73 |
- name: Commit and push to Hugging Face
|
74 |
run: |
|
75 |
cd hf-space
|
76 |
git init
|
77 |
+
# Remove existing origin if it exists
|
78 |
+
git remote remove origin || true
|
79 |
git remote add origin https://huggingface.co/spaces/tachygraphy-microtrext-norm-org/Tachygraphy-Microtext-Analysis-and-Normalization-ArchismanCoder
|
80 |
git checkout -b main
|
81 |
git add .
|
82 |
git commit -m "Update deployment via GitHub Actions"
|
83 |
git push -f origin main
|
84 |
echo "Deployment to Hugging Face Spaces completed!"
|
85 |
+
|