Ans Farooq commited on
Commit
de88f40
1 Parent(s): cef5c70

Create main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +33 -0
.github/workflows/main.yml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name: Sync to Hugging Face hub
4
+
5
+ # Controls when the workflow will run
6
+ on:
7
+ # Triggers the workflow on push or pull request events but only for the main branch
8
+ push:
9
+ branches: [ main ]
10
+
11
+ # Allows you to run this workflow manually from the Actions tab
12
+ workflow_dispatch:
13
+
14
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15
+ jobs:
16
+ # This workflow contains a single job called "sync-to-hub:"
17
+ sync-to-hub:
18
+ # The type of runner that the job will run on
19
+ runs-on: ubuntu-latest
20
+
21
+ # Steps represent a sequence of tasks that will be executed as part of the job
22
+ steps:
23
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24
+ - uses: actions/checkout@v2
25
+ with:
26
+ fetch-depth: 0
27
+
28
+ # Runs a single command using the runners shell
29
+ - name: Push to hub
30
+ env:
31
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
32
+ run: git push https://ansfarooq7:$HF_TOKEN@huggingface.co/spaces/ansfarooq7/l4-project main
33
+