Download .github/workflows/sync_hf.yml from anthony01/LumiSign: direct link, hf CLI and curl.
- Browser
- Download file 588 Bytes
-
https://huggingface.co/spaces/anthony01/LumiSign/resolve/main/.github/workflows/sync_hf.yml
- Command line
-
hf download hf://spaces/anthony01/LumiSign/.github/workflows/sync_hf.yml
-
curl -L -o sync_hf.yml https://huggingface.co/spaces/anthony01/LumiSign/resolve/main/.github/workflows/sync_hf.yml
588 Bytes
| name: Sync to Hugging Face hub | |
| on: | |
| push: | |
| branches: [main] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| sync-to-hub: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true # Ensures Large File Storage is pulled correctly | |
| - name: Push to Hugging Face | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: git push --force https://anthony01:$HF_TOKEN@huggingface.co/spaces/anthony01/LumiSign main |