name: Deploy to Hugging Face Space on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 lfs: true - name: Push to Hugging Face Space env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git config --global user.email "actions@github.com" git config --global user.name "github-actions" git remote add space https://Clarkoer:${HF_TOKEN}@huggingface.co/spaces/Clarkoer/GAL git push --force space main 2>&1 || echo "Push failed - check HF_TOKEN has Write permission"