Akshit Chaturvedi
Initial commit
7d9ab7f
raw
history blame contribute delete
827 Bytes
# .github/workflows/sync-to-hf-space.yml
name: Sync to Hugging Face Space
on:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
echo "Attempting to push to Hugging Face Space: GuitarGeorge/fundamental-analysis"
git remote add hf_space "https://dummy:${HF_TOKEN}@huggingface.co/spaces/GuitarGeorge/fundamental-analysis"
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git push --force hf_space HEAD:refs/heads/main
echo "Push to Hugging Face Space completed."