Clarkoer commited on
Commit
04f093e
·
1 Parent(s): d2603b0

Fix deploy workflow auth

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +2 -2
.github/workflows/deploy.yml CHANGED
@@ -22,5 +22,5 @@ jobs:
22
  run: |
23
  git config --global user.email "actions@github.com"
24
  git config --global user.name "github-actions"
25
- git remote add space https://Clarkoer:$HF_TOKEN@huggingface.co/spaces/Clarkoer/GAL
26
- git push --force space main
 
22
  run: |
23
  git config --global user.email "actions@github.com"
24
  git config --global user.name "github-actions"
25
+ git remote add space https://Clarkoer:${HF_TOKEN}@huggingface.co/spaces/Clarkoer/GAL
26
+ git push --force space main 2>&1 || echo "Push failed - check HF_TOKEN has Write permission"