name: Deploy to Hf Hub on: push: branches: - main # to run this workflow manually from the Actions tab workflow_dispatch: permissions: {} jobs: sync-to-hub: permissions: contents: read runs-on: ubuntu-latest steps: - uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0 with: fetch-depth: 0 lfs: true - name: Push to hub env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: git push https://mishig:$HF_TOKEN@huggingface.co/spaces/huggingfacejs/chat-template-playground main -f