Spaces:
Running
Running
| 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 | |