Skip to content

Commit 29d9216

Browse files
committed
fix:github_actions
1 parent efd7d80 commit 29d9216

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/update_space.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ jobs:
1818
python -m pip install --upgrade pip
1919
pip install huggingface_hub
2020
- name: Login to Hugging Face
21+
env:
22+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
2123
run: |
22-
echo ${{ secrets.HF_TOKEN }} | huggingface-cli login
24+
echo $HF_TOKEN | huggingface-cli login
2325
- name: Deploy to Spaces
2426
run: |
2527
# Create space.yml if it doesn't exist
@@ -34,4 +36,4 @@ jobs:
3436
fi
3537
# Push to Hugging Face Space
3638
huggingface-cli repo create fahmizainal17/Q-Learning_GridWorld_Simulator --type space || true
37-
huggingface-cli upload fahmizainal17/Q-Learning_GridWorld_Simulator * --repo-type space
39+
huggingface-cli upload --repo fahmizainal17/Q-Learning_GridWorld_Simulator --repo-type space *

0 commit comments

Comments
 (0)