NotebookLM-Clone / .github /workflows /deploy-to-hf.yml
tAnboyyy's picture
refactor GitHub Actions workflow to use git for pushing to Hugging Face Space
619d03e
raw
history blame contribute delete
875 Bytes
name: Deploy to Hugging Face Space
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Configure git for push
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Push to Hugging Face Space (git)
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add huggingface https://notebooklm-group2:${HF_TOKEN}@huggingface.co/spaces/notebooklm-group2/NotebookLM-Clone
git push huggingface HEAD:main --force