Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Commit 
							
							·
						
						d76577d
	
1
								Parent(s):
							
							4474b88
								
Push to evijit/pluralchat HF space
Browse files
    	
        .github/workflows/sync-to-huggingface.yml
    ADDED
    
    | @@ -0,0 +1,30 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            # Automatically sync Avijit's HF space with the main branch.
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            name: Sync to Hugging Face hub
         | 
| 4 | 
            +
            on:
         | 
| 5 | 
            +
              push:
         | 
| 6 | 
            +
                branches: [main]
         | 
| 7 | 
            +
             | 
| 8 | 
            +
              # to run this workflow manually from the Actions tab
         | 
| 9 | 
            +
              workflow_dispatch:
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            jobs:
         | 
| 12 | 
            +
              sync-to-hub:
         | 
| 13 | 
            +
                runs-on: ubuntu-latest
         | 
| 14 | 
            +
                steps:
         | 
| 15 | 
            +
                  - uses: actions/checkout@v3
         | 
| 16 | 
            +
                    with:
         | 
| 17 | 
            +
                      fetch-depth: 0
         | 
| 18 | 
            +
                      lfs: true
         | 
| 19 | 
            +
                  
         | 
| 20 | 
            +
                  - name: Install Git LFS
         | 
| 21 | 
            +
                    run: |
         | 
| 22 | 
            +
                      git lfs install
         | 
| 23 | 
            +
                      git lfs pull
         | 
| 24 | 
            +
                  
         | 
| 25 | 
            +
                  - name: Push to hub
         | 
| 26 | 
            +
                    env:
         | 
| 27 | 
            +
                      HF_TOKEN: ${{ secrets.HF_TOKEN }}
         | 
| 28 | 
            +
                    run: |
         | 
| 29 | 
            +
                      git remote add space https://evijit:$HF_TOKEN@huggingface.co/spaces/evijit/pluralchat || true
         | 
| 30 | 
            +
                      git push --force space main
         | 
 
			
