Lalit Mahale commited on
Commit
cda5854
·
unverified ·
1 Parent(s): afe46fc

Create main.yml action file

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +25 -0
.github/workflows/main.yml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+
18
+ - name: Push to hub
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+
22
+ run: |
23
+ git config --global credential.helper store
24
+ git remote set-url origin https://Lalit1997:${{secrets.HF_TOKEN}}@huggingface.co/spaces/Lalit1997/all-in-one-summarizer
25
+ git push --force origin main