name: Deploy to Hugging Face on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Push to Hugging Face env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git config --global user.email "github-actions@github.com" git config --global user.name "GitHub Actions" git clone https://oauth2:${HF_TOKEN}@huggingface.co/spaces/kadmsdfgsdfg/Resume-Intelligence-Analyser ../hf_space rsync -av --delete --exclude ".git" ./ ../hf_space/ cd ../hf_space git add . git commit -m "Auto Deploy from GitHub" || echo "No changes" git push