name: Sync to HuggingFace Spaces on: push: branches: - master jobs: sync-to-hf: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - name: Setup Python uses: actions/setup-python@v4 with: python-version: '3.11' - name: Install huggingface_hub run: pip install huggingface_hub - name: Push to HuggingFace Spaces env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: python sync_hf.py