hmusman2804045-max
Configure app for Hugging Face Gradio SDK deployment
8a13df3
Raw
History Blame Contribute Delete
553 Bytes
name: Deploy to Hugging Face Spaces
on:
push:
branches:
- main
jobs:
deploy:
name: Sync to Hugging Face Space
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
run: |
git push https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/urdu-sentiment-engine main