Sohailhosseini commited on
Commit
ffcacb4
·
2 Parent(s): 659aa91 77a9cd3

Merge branch 'main' of https://github.com/shosseini811/hugging-face-demo

Browse files
Files changed (2) hide show
  1. .github/workflows/main.yml +25 -0
  2. README.md +11 -1
.github/workflows/main.yml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: CI/CD to Hugging Face
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ deploy-to-huggingface:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout code
12
+ uses: actions/checkout@v2
13
+ with:
14
+ fetch-depth: 0
15
+ - name: Add remote
16
+ env:
17
+ HF_TOKEN: ${{ secrets.HUGGINGFACE }}
18
+ run: git remote add space https://Sohailhosseini:[email protected]/spaces/Sohailhosseini/demo
19
+
20
+ - name: Push to Hugging Face
21
+ env:
22
+ HF_TOKEN: ${{ secrets.HUGGINGFACE }}
23
+ run: git push --force https://Sohailhosseini:[email protected]/spaces/Sohailhosseini/demo main
24
+
25
+
README.md CHANGED
@@ -1 +1,11 @@
1
- # hugging-face-demo
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Demo
3
+ emoji: 🌖
4
+ colorFrom: purple
5
+ colorTo: purple
6
+ sdk: gradio
7
+ sdk_version: 3.0.6
8
+ app_file: app.py
9
+ pinned: false
10
+ license: cc
11
+ ---