Hardeep Arora commited on
Commit
a56e243
·
unverified ·
1 Parent(s): c7c4a55

Create main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +37 -0
.github/workflows/main.yml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name: Sync to Hugging Face
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
+ pull_request:
11
+ branches: [ "main" ]
12
+
13
+ # Allows you to run this workflow manually from the Actions tab
14
+ workflow_dispatch:
15
+
16
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
17
+ jobs:
18
+ sync-to-hub:
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
+ # Runs a single command using the runners shell
28
+ - name: Add remote
29
+ env:
30
+ HF: ${{ secrets.HUGGINGFACE }}
31
+ run: git remote add space https://Hardeep:[email protected]/spaces/Hardeep/text-summarisation
32
+ - name: Push to hub
33
+ env:
34
+ HF: ${{ secrets.HUGGINGFACE }}
35
+ run: git push --force https://Hardeep:[email protected]/spaces/Hardeep/text-summarisation main
36
+
37
+