Spaces:
Running
Running
luanpoppe
commited on
Commit
·
45d402f
1
Parent(s):
06f7cd7
fix: nova tentativa
Browse files
.github/workflows/sync-to-huggingface.yml
CHANGED
@@ -19,6 +19,7 @@ jobs:
|
|
19 |
run: |
|
20 |
echo "Private key:"
|
21 |
echo "${{ secrets.HF_SSH_PRIVATE_KEY }}"
|
|
|
22 |
|
23 |
- name: Set up SSH
|
24 |
run: |
|
@@ -27,6 +28,9 @@ jobs:
|
|
27 |
chmod 600 ~/.ssh/custom_key
|
28 |
ssh-keyscan huggingface.co >> ~/.ssh/known_hosts
|
29 |
|
|
|
|
|
|
|
30 |
- name: Determine target remote
|
31 |
id: determine_remote
|
32 |
run: |
|
@@ -41,4 +45,4 @@ jobs:
|
|
41 |
|
42 |
- name: Push to Hugging Face Space
|
43 |
run: |
|
44 |
-
GIT_SSH_COMMAND="ssh -i ~/.ssh/custom_key" git push $TARGET_REMOTE
|
|
|
19 |
run: |
|
20 |
echo "Private key:"
|
21 |
echo "${{ secrets.HF_SSH_PRIVATE_KEY }}"
|
22 |
+
ls -la ~/.ssh
|
23 |
|
24 |
- name: Set up SSH
|
25 |
run: |
|
|
|
28 |
chmod 600 ~/.ssh/custom_key
|
29 |
ssh-keyscan huggingface.co >> ~/.ssh/known_hosts
|
30 |
|
31 |
+
git remote set-url space [email protected]:spaces/luanpoppe/vella-backend.git
|
32 |
+
git remote set-url tests [email protected]:spaces/luanpoppe/vella-backend-tests.git
|
33 |
+
|
34 |
- name: Determine target remote
|
35 |
id: determine_remote
|
36 |
run: |
|
|
|
45 |
|
46 |
- name: Push to Hugging Face Space
|
47 |
run: |
|
48 |
+
GIT_SSH_COMMAND="ssh -i ~/.ssh/custom_key" git push $TARGET_REMOTE HEAD:main --force
|