YamenRM's picture
Update workflow to sync with Hugging Face
bbacbdd unverified
Raw
History Blame Contribute Delete
649 Bytes
name: Sync to Hugging Face
on:
push:
branches: [main]
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Git
run: |
git config --global user.email "actions@github.com"
git config --global user.name "github-actions"
- name: Add Hugging Face remote
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add hf https://YamenRM:$HF_TOKEN@huggingface.co/spaces/YamenRM/workflow-analyzer
- name: Push to Hugging Face
run: |
git push -f hf main