name: Sync to Hugging Face Hub on: push: branches: [main] # Allow manual trigger from the Actions tab workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v3 with: fetch-depth: 0 lfs: true - name: Push to Hugging Face Space env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git push --force https://spoodermon:$HF_TOKEN@huggingface.co/spaces/spoodermon/gmail-agentic main