new-space / .github /workflows /deploy.yml
asingh38
Fix OAuth, add dotenv support, implement backend
e24018c
Raw History Blame
492 Bytes
name: Deploy to Hugging Face Space
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add hf https://user:$HF_TOKEN@huggingface.co/spaces/asingh38/new-space
git push hf main --force