Mostafa174's picture
Deploy app to Hugging Face Space
4206768
raw
history blame contribute delete
806 Bytes
name: Sync to Hugging Face Space
on:
push:
branches:
- main
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
lfs: true
fetch-depth: 0
- name: Set up git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote remove space 2>/dev/null || true
git remote add space https://huggingface.co/spaces/Mostafa174/Topic_Modeling_AI
git push --force "https://user:[email protected]/spaces/Mostafa174/Topic_Modeling_AI" HEAD:main