9thblogs / .github /workflows /sync_to_hf.yml
Claude
HF push認証のユーザー名を正しいHFアカウント名に修正
855d133 unverified
Raw
History Blame Contribute Delete
578 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@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config user.email "action@github.com"
git config user.name "GitHub Action"
git push --force https://Nagomi-SugarHeart:$HF_TOKEN@huggingface.co/spaces/Wasemas/9thblogs main