name: Deploy to HuggingFace Spaces on: push: branches: [ main ] jobs: sync: name: Push to HuggingFace runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 # full history so HF receives all commits - name: Push to HuggingFace Space env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git remote add huggingface https://RayMelius:${HF_TOKEN}@huggingface.co/spaces/RayMelius/StockEx.git git push huggingface main --force