name: Deploy to Hugging Face Space on: push: branches: [ "main" ] workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 with: fetch-depth: 0 - name: Push to Hugging Face Space env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git remote add space https://RoyAalekh:$HF_TOKEN@huggingface.co/spaces/RoyAalekh/hackathon_code4change git push --force space main