Spaces:
Sleeping
Sleeping
soutrik
commited on
Commit
·
c983fe0
1
Parent(s):
853a5c8
updated yml file
Browse files- .github/workflows/main.yml +17 -0
.github/workflows/main.yml
CHANGED
|
@@ -22,8 +22,25 @@ jobs:
|
|
| 22 |
USER: soutrik
|
| 23 |
SPACE: gradio_demo
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
- name: Push to hub
|
| 26 |
run: |
|
|
|
|
|
|
|
| 27 |
git push --force https://$USER:[email protected]/spaces/$USER/$SPACE main
|
| 28 |
env:
|
| 29 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
|
| 22 |
USER: soutrik
|
| 23 |
SPACE: gradio_demo
|
| 24 |
|
| 25 |
+
- name: Add README.md
|
| 26 |
+
run: |
|
| 27 |
+
cat <<EOF > README.md
|
| 28 |
+
---
|
| 29 |
+
title: My Gradio App
|
| 30 |
+
emoji: 🚀
|
| 31 |
+
colorFrom: blue
|
| 32 |
+
colorTo: green
|
| 33 |
+
sdk: gradio
|
| 34 |
+
sdk_version: "5.7.1"
|
| 35 |
+
app_file: app.py
|
| 36 |
+
pinned: false
|
| 37 |
+
---
|
| 38 |
+
EOF
|
| 39 |
+
|
| 40 |
- name: Push to hub
|
| 41 |
run: |
|
| 42 |
+
git add README.md
|
| 43 |
+
git commit -m "Add README.md"
|
| 44 |
git push --force https://$USER:[email protected]/spaces/$USER/$SPACE main
|
| 45 |
env:
|
| 46 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|