Topic_Modeling_AI / .github /workflows /deploy_to_hf.yml
Mostafa174's picture
redeployment
24a4057
raw
history blame
601 Bytes
name: Sync to Hugging Face Space
on:
push:
branches:
- main
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- 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 remove space 2>/dev/null || true
git remote add space https://huggingface.co/spaces/Mostafa174/Topic_Modeling_AI
git push --force https://$HF_TOKEN@huggingface.co/spaces/Mostafa174/Topic_Modeling_AI