Spaces:
Paused
Paused
| name: Sync to Hugging Face Hub | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| jobs: | |
| sync-to-hub: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Push to HF | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| # Add Hugging Face Space remote using write token and push current HEAD to main branch | |
| git remote add space https://HwangJinwook:$HF_TOKEN@huggingface.co/spaces/HwangJinwook/AdSafeLight | |
| git push --force space HEAD:main | |