name: Deploy to Hugging Face Spaces on: workflow_dispatch: {} release: types: [published] jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - name: Configure Git run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - name: Push to Hugging Face Space env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git remote add space https://USER:$HF_TOKEN@huggingface.co/spaces/deepakpant/expressly-app git push --force space main